2020-02-12 01:41:17 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Invoice Ninja (https://invoiceninja.com)
|
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
|
|
|
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
|
|
|
|
*
|
|
|
|
* @license https://opensource.org/licenses/AAL
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
2020-02-28 22:57:47 +01:00
|
|
|
use App\Models\Filterable;
|
2020-02-12 01:41:17 +01:00
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
|
|
|
|
class Design extends BaseModel
|
|
|
|
{
|
2020-02-28 22:57:47 +01:00
|
|
|
use Filterable;
|
|
|
|
use SoftDeletes;
|
|
|
|
|
2020-02-17 21:07:32 +01:00
|
|
|
protected $casts = [
|
|
|
|
'design' => 'object',
|
2020-02-28 22:57:47 +01:00
|
|
|
'deleted_at' => 'timestamp',
|
2020-02-17 21:07:32 +01:00
|
|
|
'updated_at' => 'timestamp',
|
|
|
|
'created_at' => 'timestamp',
|
|
|
|
];
|
|
|
|
|
2020-02-28 22:57:47 +01:00
|
|
|
protected $fillable = [
|
|
|
|
'name',
|
|
|
|
'design',
|
|
|
|
'is_active',
|
|
|
|
];
|
|
|
|
|
2020-02-12 01:41:17 +01:00
|
|
|
public function company()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Company::class);
|
|
|
|
}
|
2020-03-21 06:37:30 +01:00
|
|
|
}
|