buat benda baru
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class loguser extends Model
|
||||
{
|
||||
|
||||
public $incrementing = true;
|
||||
|
||||
//show the primarykey of this table
|
||||
protected $primaryKey = 'recno';
|
||||
|
||||
//show the table of this model
|
||||
protected $table = 'loguser';
|
||||
|
||||
protected $fillable = ['recno', 'user', 'date','emel','action','note'];
|
||||
|
||||
//show that no public created been generated
|
||||
public $timestamps = false;
|
||||
}
|
||||
Reference in New Issue
Block a user