| 1 | <?php |
||
| 16 | class Block extends Model |
||
| 17 | { |
||
| 18 | use Translatable, PresentableTrait; |
||
| 19 | |||
| 20 | protected $presenter = 'Modules\Block\Presenters\BlockPresenter'; |
||
| 21 | protected $table = 'block__blocks'; |
||
| 22 | public $translatedAttributes = ['online', 'body']; |
||
| 23 | protected $fillable = ['name', 'online', 'body']; |
||
| 24 | protected $casts = [ |
||
| 25 | 'online' => 'bool', |
||
| 26 | ]; |
||
| 27 | |||
| 28 | public function __call($method, $parameters) |
||
| 43 | |||
| 44 | public function getShortcodeAttribute() |
||
| 48 | } |
||
| 49 |