Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
vendor
/
silber
/
bouncer
/
middleware
:
Ability.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Silber\Bouncer\Database; use Illuminate\Database\Eloquent\Model; class Ability extends Model { use Concerns\IsAbility; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = ['name', 'title']; /** * The attributes that should be cast to native types. * * @var array */ protected $casts = [ 'id' => 'int', 'entity_id' => 'int', 'only_owned' => 'boolean', ]; /** * Constructor. */ public function __construct(array $attributes = []) { $this->table = Models::table('abilities'); parent::__construct($attributes); } }