|
|
|
|
8
|
{
|
8
|
{
|
9
|
//protected $connection = 'connection-name'; //jika menggunakan 2 DB modelnya harus dikasih ini
|
9
|
//protected $connection = 'connection-name'; //jika menggunakan 2 DB modelnya harus dikasih ini
|
10
|
//protected $primaryKey = 'your_key_name'; // set primarykeymu jika bukan ID
|
10
|
//protected $primaryKey = 'your_key_name'; // set primarykeymu jika bukan ID
|
11
|
- protected $table = 'Roles';
|
|
|
|
|
11
|
+ protected $table = 'roles';
|
12
|
protected $fillable = [];
|
12
|
protected $fillable = [];
|
13
|
//public $incrementing = false; //jika primary keynya string
|
13
|
//public $incrementing = false; //jika primary keynya string
|
14
|
//public $timestamps = false; //matiin created_at, updated_at
|
14
|
//public $timestamps = false; //matiin created_at, updated_at
|