Browse Source

add fillable company_id

pull/1/head
wahyun 10 months ago
parent
commit
79bfa0cf8e
  1. 34
      app/Models/Satuan.php

34
app/Models/Satuan.php

@ -1,17 +1,17 @@
<?php <?php
namespace App\Models; namespace App\Models;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
class Satuan extends Model class Satuan extends Model
{ {
protected $table = 'm_satuan'; protected $table = 'm_satuan';
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' 'name', 'description', 'created_at', 'created_by', 'updated_at', 'updated_by', 'company_id'
]; ];
} }

Loading…
Cancel
Save