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