Answers for "laravel blade get unique values in dropdown -mysql"

PHP
0

get the unique rows from table laravel

$categories = Machine::distinct('category')->pluck('category');
Posted by: Guest on August-28-2021
1

laravel set field unique

Schema::table('manufacturers', function($table)
{
    $table->string('name')->unique(); 
});
Posted by: Guest on March-31-2020

Code answers related to "laravel blade get unique values in dropdown -mysql"

Browse Popular Code Answers by Language