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