PHP Class App\Repositories\Backend\Access\Role\RoleRepository

Inheritance: extends App\Repositories\Repository
Show file Open project: rappasoft/laravel-5-boilerplate Class Usage Examples

Public Methods

Method Description
create ( array $input ) : boolean
delete ( Model $role ) : boolean
getAll ( string $order_by = 'sort', string $sort = 'asc' ) : mixed
getDefaultUserRole ( ) : mixed
getForDataTable ( string $order_by = 'sort', string $sort = 'asc' ) : mixed
update ( Model $role, array $input ) : boolean

Method Details

create() public method

public create ( array $input ) : boolean
$input array
return boolean

delete() public method

public delete ( Model $role ) : boolean
$role Illuminate\Database\Eloquent\Model
return boolean

getAll() public method

public getAll ( string $order_by = 'sort', string $sort = 'asc' ) : mixed
$order_by string
$sort string
return mixed

getDefaultUserRole() public method

public getDefaultUserRole ( ) : mixed
return mixed

getForDataTable() public method

public getForDataTable ( string $order_by = 'sort', string $sort = 'asc' ) : mixed
$order_by string
$sort string
return mixed

update() public method

public update ( Model $role, array $input ) : boolean
$role Illuminate\Database\Eloquent\Model
$input array
return boolean