]> BookStack Code Mirror - bookstack/blob - app/Restriction.php
Added basic system tests for markdown editor, Added extra test helpers
[bookstack] / app / Restriction.php
1 <?php
2
3 namespace BookStack;
4
5 use Illuminate\Database\Eloquent\Model;
6
7 class Restriction extends Model
8 {
9
10     protected $fillable = ['role_id', 'action'];
11     public $timestamps = false;
12
13     /**
14      * Get all this restriction's attached entity.
15      * @return \Illuminate\Database\Eloquent\Relations\MorphTo
16      */
17     public function restrictable()
18     {
19         return $this->morphTo();
20     }
21 }