Answers for "laravel create unique string"

PHP
1

get unique values in laravel

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

laravel composite unique key

$table->unique(['mytext', 'user_id']);
Posted by: Guest on October-13-2021

Code answers related to "laravel create unique string"

Browse Popular Code Answers by Language