| 1 | <?php namespace WITR; |
||
| 5 | class Video extends Model { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * The database table used by the model. |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $table = 'videos'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The attributes that are mass assignable. |
||
| 16 | * |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | protected $fillable = ['artist', 'song', 'album', 'review', 'url_tag']; |
||
| 20 | |||
| 21 | public $timestamps = false; |
||
| 22 | |||
| 23 | public function setUrlTagAttribute($value) |
||
| 32 | } |
||
| 33 |