Sets primary key for the model (default is
id
)
class Post extends Model
{
    // Primary key
    public $primaryKey = 'record_id';
}
by Valeri Tandilashvili
4 years ago
Laravel
models
Laravel From Scratch
0
Pro tip: use ```triple backticks around text``` to write in code fences