|
|
@ -2,13 +2,25 @@ |
|
|
|
|
|
|
|
|
|
|
|
namespace App\Models; |
|
|
|
namespace App\Models; |
|
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory; |
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model; |
|
|
|
use Illuminate\Database\Eloquent\Model; |
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\SoftDeletes; |
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory; |
|
|
|
|
|
|
|
|
|
|
|
class m_asset extends Model |
|
|
|
class m_asset extends Model |
|
|
|
{ |
|
|
|
{ |
|
|
|
use HasFactory; |
|
|
|
use HasFactory, SoftDeletes; |
|
|
|
protected $table = 'm_assets', $guarded = ['id']; |
|
|
|
protected $table = 'm_assets'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected $fillable = [ |
|
|
|
|
|
|
|
'seri', |
|
|
|
|
|
|
|
'name', |
|
|
|
|
|
|
|
'description', |
|
|
|
|
|
|
|
'warehouse_id', |
|
|
|
|
|
|
|
'date', |
|
|
|
|
|
|
|
'qr_count', |
|
|
|
|
|
|
|
'created_by', |
|
|
|
|
|
|
|
'updated_by', |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
public function warehouse() |
|
|
|
public function warehouse() |
|
|
|
{ |
|
|
|
{ |
|
|
|