Answers for "laravel check string unique on databse"

PHP
2

get unique values in laravel

$users = User::select('name')->distinct()->get();
Posted by: Guest on February-19-2021
2

Laravel Validate unique column

'business_name' => 'required|unique:companies,name',
Posted by: Guest on August-31-2021
0

laravel set field unique

'business_name' => 'required|unique:companies,name',
Posted by: Guest on August-31-2021

Code answers related to "laravel check string unique on databse"

Browse Popular Code Answers by Language