Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php namespace Acme\Demo\Models;
- use Model;
- use BusyRoomsCMS\Backend\Traits\BaseTrait;
- /**
- * Post Model
- */
- class Post extends Model
- {
- use BaseTrait;
- public $implement = ['@RainLab.Translate.Behaviors.TranslatableModel'];
- public $translatable = [
- 'title',
- ];
- /**
- * @var array Guarded fields
- */
- protected $guarded = ['*'];
- /**
- * @var array Fillable fields
- */
- protected $fillable = [];
- public $morphMany = [
- 'slugs' => ['BusyRoomsCMS\Backend\Models\Slug', 'name' => 'sluggable', 'delete' => true],
- ];
- }
Add Comment
Please, Sign In to add comment