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