public function fullCrudAbilities($model, $delimiter = '.', $fillable_only = false, $name = null)
    {
        $name = $name ?: $model;

        return $this->modelAbilities($name, $delimiter)
                    ->fieldsAbilities($model, $delimiter, $fillable_only);
    }
public function fullCrudAbilities($model, $delimiter = '.', $fillable_only = false, $name = null)
    {
        $name = $name ?: $model;

        return $this->modelAbilities($name, $delimiter)
                    ->fieldsAbilities($model, $delimiter, $fillable_only);
    }
public function fullCrudAbilities ( $ model , $ delimiter = '.' , $ fillable_only = false , $ name = null ) { $ name = $ name ? : $ model ; return $ this -> modelAbilities ( $ name , $ delimiter ) -> fieldsAbilities ( $ model , $ delimiter , $ fillable_only ) ; }
Generates an ability for each element and for fields,
ex. ClassName.create, ClassName.create.field1, ClassName.create.field2,
ClassName.store, ClassName.store.field1, ClassName.store.field2, ..etc.

@param Model       $model
@param string      $delimiter
@param bool        $fillable_only
@param null|string $name

@return $this
Generates an ability for each element and for fields ex . ClassName . create ClassName . create . field1 ClassName . create . field2 ClassName . store ClassName . store . field1 ClassName . store . field2 .. etc .