We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 44 | class Page extends EloquentModel implements Linkable |
||
| 45 | { |
||
| 46 | /* |
||
| 47 | * Laravel Deleting. |
||
| 48 | * @ https://laravel.com/docs/5.5/eloquent#soft-deleting |
||
| 49 | */ |
||
| 50 | use SoftDeletes; |
||
| 51 | |||
| 52 | /** |
||
| 53 | * The table associated with the model. |
||
| 54 | * |
||
| 55 | * @var string |
||
| 56 | */ |
||
| 57 | protected $table = 'pages'; |
||
| 58 | |||
| 59 | /** |
||
| 60 | * The attributes that are not mass assignable. |
||
| 61 | * |
||
| 62 | * @var array |
||
| 63 | */ |
||
| 64 | protected $guarded = []; |
||
| 65 | |||
| 66 | /** |
||
| 67 | * The table date columns, casted to Carbon. |
||
| 68 | * |
||
| 69 | * @var array |
||
| 70 | */ |
||
| 71 | protected $dates = ['created_at', 'updated_at', 'deleted_at']; |
||
| 72 | |||
| 73 | /** |
||
| 74 | * Attributes to exclude from the Audit. |
||
| 75 | * |
||
| 76 | * @var array |
||
| 77 | */ |
||
| 78 | protected $auditExclude = [ |
||
| 79 | 'views', |
||
| 80 | ]; |
||
| 81 | |||
| 82 | /** |
||
| 83 | * Increment the view count of the page. |
||
| 84 | * |
||
| 85 | * @return int |
||
| 86 | */ |
||
| 87 | public function incrementViews() |
||
| 91 | /** |
||
| 92 | * A page belongs to a single menu. |
||
| 93 | * |
||
| 94 | * @return Menu|BelongsTo |
||
| 95 | */ |
||
| 96 | public function menu() |
||
| 100 | |||
| 101 | /** |
||
| 102 | * A page can have a redirect to another url, external or internal. |
||
| 103 | * |
||
| 104 | * @return Redirect|\Illuminate\Database\Eloquent\Relations\HasOne |
||
| 105 | */ |
||
| 106 | public function redirect() |
||
| 110 | |||
| 111 | /** |
||
| 112 | * Get the creator model of the eloquent model. |
||
| 113 | * |
||
| 114 | * @return Account|\Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 115 | */ |
||
| 116 | public function creator() |
||
| 120 | |||
| 121 | /** |
||
| 122 | * Get the creator model of the eloquent model. |
||
| 123 | * |
||
| 124 | * @return Account|\Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 125 | */ |
||
| 126 | public function editor() |
||
| 130 | |||
| 131 | /** |
||
| 132 | * @return \Illuminate\Database\Eloquent\Relations\MorphOne|Collection |
||
| 133 | */ |
||
| 134 | public function link() |
||
| 138 | |||
| 139 | /** |
||
| 140 | * @return \Illuminate\Database\Eloquent\Relations\MorphMany|Collection |
||
| 141 | */ |
||
| 142 | public function linked() |
||
| 146 | |||
| 147 | /** |
||
| 148 | * The url that is used to view this model. |
||
| 149 | * |
||
| 150 | * @return string |
||
| 151 | */ |
||
| 152 | public function route() |
||
| 159 | |||
| 160 | /** |
||
| 161 | * The name of the current model object. |
||
| 162 | * |
||
| 163 | * @return string |
||
| 164 | */ |
||
| 165 | public function name() |
||
| 169 | } |