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

Loading…
Cancel
Save