how to set a column as key in laravel migration code example Example: create migration laravel php artisan make:Model Product -m -c --resource