PHP Class Domain\Config\ConfigRepository

Inheritance: extends Domain\Repositories\BaseRepository
Show file Open project: resultsystems/school

Public Methods

Method Description
delete ( integer $id ) : integer Destroy item of model by id :id.
forceDelete ( integer $id, $field = 'field' ) : boolean | null Force destroy item of model by id :id.
get ( integer $id, array $columns = ['*'], array $with = [], array $load = [] ) : Domains\BaseModel Get item of model by id :id.
getByIds ( array $ids, array $columns = ['*'], array $with = [], array $load = [] ) : Illuminate\Database\Eloquent\{Collection, Get items of model by ids :ids.
model ( )
update ( array $data, integer $id ) : Domains\BaseModel Update item of model.

Method Details

delete() public method

Destroy item of model by id :id.
public delete ( integer $id ) : integer
$id integer
return integer

forceDelete() public method

Force destroy item of model by id :id.
public forceDelete ( integer $id, $field = 'field' ) : boolean | null
$id integer
return boolean | null

get() public method

Get item of model by id :id.
public get ( integer $id, array $columns = ['*'], array $with = [], array $load = [] ) : Domains\BaseModel
$id integer
$columns array
$with array
$load array
return Domains\BaseModel

getByIds() public method

Get items of model by ids :ids.
public getByIds ( array $ids, array $columns = ['*'], array $with = [], array $load = [] ) : Illuminate\Database\Eloquent\{Collection,
$ids array
$columns array
$with array
$load array
return Illuminate\Database\Eloquent\{Collection,

model() public method

public model ( )

update() public method

Update item of model.
public update ( array $data, integer $id ) : Domains\BaseModel
$data array
$id integer
return Domains\BaseModel