We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 11 | class Campaign extends Model |
||
| 12 | { |
||
| 13 | |||
| 14 | use SoftDeletes; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The table associated with the model. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $table = 'campaigns'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Indicates if the IDs are auto-incrementing. |
||
| 25 | * |
||
| 26 | * @var bool |
||
| 27 | */ |
||
| 28 | public $incrementing = false; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * The attributes that are mass assignable. |
||
| 32 | * |
||
| 33 | * @var array |
||
| 34 | */ |
||
| 35 | protected $filliable = [ 'title', 'description', 'image', 'expires', 'user_id' ]; |
||
| 36 | |||
| 37 | protected $hidden = [ 'created_at', 'updated_at', 'deleted_at', 'user_id' ]; |
||
| 38 | |||
| 39 | protected $dates = [ |
||
| 40 | 'created_at', 'updated_at', 'deleted_at' |
||
| 41 | ]; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Return the owner of campaign |
||
| 45 | */ |
||
| 46 | public function owner() |
||
| 50 | |||
| 51 | public function comments() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Generate automaticaly the Campaign id(uuid). |
||
| 58 | * |
||
| 59 | * @return void |
||
| 60 | */ |
||
| 61 | 1 | public static function boot() |
|
| 71 | } |
||
| 72 |