| 1 | <?php |
||
| 8 | class TextBlock extends Model |
||
| 9 | { |
||
| 10 | use SoftDeletes; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * The table associated with the model. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $table = 'text_blocks'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The attributes that should be mutated to dates. |
||
| 21 | * |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | protected $dates = ['deleted_at']; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * The attributes that are mass assignable. |
||
| 28 | * |
||
| 29 | * @var array |
||
| 30 | */ |
||
| 31 | protected $fillable = ['name', 'text', 'formatted_text', 'order']; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Convert camelCase properties to snake_case properties and try again. |
||
| 35 | * |
||
| 36 | * @param string $key |
||
| 37 | * |
||
| 38 | * @return mixed |
||
| 39 | */ |
||
| 40 | public function __get($key) |
||
| 52 | } |
||
| 53 |