First Commit
This commit is contained in:
Executable
+27
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TwigExample extends Model
|
||||
{
|
||||
protected $table = 'crudexample'; // Table name in the database
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'password',
|
||||
'company',
|
||||
'address',
|
||||
'phone',
|
||||
'email',
|
||||
'notes'
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'password',
|
||||
];
|
||||
|
||||
// Disable timestamps if there are no created_at and updated_at columns
|
||||
public $timestamps = false;
|
||||
}
|
||||
Reference in New Issue
Block a user