28 lines
468 B
PHP
28 lines
468 B
PHP
<?php
|
|
|
|
namespace Modules\Crm\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Proposal extends Model
|
|
{
|
|
/**
|
|
* The table associated with the model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $table = 'crm_proposals';
|
|
|
|
/**
|
|
* The attributes that aren't mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $guarded = ['id'];
|
|
|
|
public function media()
|
|
{
|
|
return $this->morphMany(\App\Media::class, 'model');
|
|
}
|
|
}
|