mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
28 lines
469 B
PHP
28 lines
469 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Invoice extends Model
|
|
{
|
|
protected $guarded = [
|
|
'id'
|
|
];
|
|
|
|
protected $casts = [
|
|
'seller' => 'array',
|
|
'client' => 'array',
|
|
'bag' => 'array',
|
|
];
|
|
|
|
/**
|
|
* Get user instance
|
|
*
|
|
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
|
*/
|
|
public function user() {
|
|
return $this->hasOne(User::class, 'id', 'user_id');
|
|
}
|
|
}
|