how to set custom primary key in model laravel

in this artical how to set custom primary key in modal laravel only add model name and like this enter add this line…Your problem query solved succsfully..

public $timestamps = false;

this line to add before this line add final;

public $timestamps = false;
protected $primarykey = 'YOUR_PRIMARY_KEY';

I hope your query is succesfully solved

Leave a Comment