| 1 | <?php |
||
| 7 | class Video extends Model |
||
| 8 | { |
||
| 9 | protected $fillable =[ |
||
| 10 | 'title', |
||
| 11 | 'url', |
||
| 12 | 'description', |
||
| 13 | 'user_id', |
||
| 14 | ]; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * A video belongs to one user. |
||
| 18 | * |
||
| 19 | * @return Object |
||
| 20 | */ |
||
| 21 | public function user() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get a list of categories associated with |
||
| 28 | * this video |
||
| 29 | * |
||
| 30 | * @param [type] $value [description] |
||
| 31 | * @return array Associated categories |
||
| 32 | */ |
||
| 33 | public function getCategoryListAttribute() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * A video belongs to many categories |
||
| 40 | * |
||
| 41 | * @return Object. |
||
| 42 | */ |
||
| 43 | public function categories() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * A video can have many comments. |
||
| 50 | * |
||
| 51 | * @return Object |
||
| 52 | */ |
||
| 53 | public function comments() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * A video can have many favorites |
||
| 60 | * |
||
| 61 | * @return Object |
||
| 62 | */ |
||
| 63 | public function favorites() |
||
| 67 | } |
||
| 68 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.