| 1 | <?php |
||
| 32 | class Note extends BaseModel |
||
| 33 | { |
||
| 34 | use CrudTrait, |
||
| 35 | RelationTrait, |
||
| 36 | QueueTrait; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Timestamp enabled. |
||
| 40 | * |
||
| 41 | * @var bool |
||
| 42 | */ |
||
| 43 | public $timestamps = true; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Name of database table. |
||
| 47 | * |
||
| 48 | * @var string |
||
| 49 | */ |
||
| 50 | protected $table = 'projects_notes'; |
||
| 51 | |||
| 52 | /** |
||
| 53 | * List of allowed columns to be used in $this->fill(). |
||
| 54 | * |
||
| 55 | * @var array |
||
| 56 | */ |
||
| 57 | protected $fillable = ['project_id', 'created_by', 'body']; |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Generate a URL for the project note. |
||
| 61 | * |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | public function to() |
||
| 68 | } |
||
| 69 |