Browse Source

feat: add fillable

pull/1/head
Watiah11 8 months ago
parent
commit
aa6538153c
  1. 34
      app/Models/ProjectType.php

34
app/Models/ProjectType.php

@ -1,17 +1,17 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ProjectType extends Model
{
protected $table = 'm_type_proyek';
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
protected $fillable = [
'name', 'description', 'created_at', 'created_by', 'updated_at', 'updated_by', 'company_id'
];
}
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ProjectType extends Model
{
protected $table = 'm_type_proyek';
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
protected $fillable = [
'name', 'description', 'created_at', 'created_by', 'updated_at', 'updated_by', 'company_id', 'is_multiLocation'
];
}

Loading…
Cancel
Save