interface RepositoryInterface

Repository Interface for User

Methods

Model
update(Model $item, array $data = array())

update

bool|null
delete(Model $item)

delete

string
getModel()

The name of Category model class

void
setModel(string $model)

Set the name of Category model

Model
createModel()

Create model instance

Builder
query()

query

Details

at line 40
Model update(Model $item, array $data = array())

update

Parameters

Model $item item
array $data data

Return Value

Model

at line 50
bool|null delete(Model $item)

delete

Parameters

Model $item item

Return Value

bool|null

Exceptions

Exception

at line 57
string getModel()

The name of Category model class

Return Value

string

at line 65
void setModel(string $model)

Set the name of Category model

Parameters

string $model model class

Return Value

void

at line 72
Model createModel()

Create model instance

Return Value

Model

at line 79
Builder query()

query

Return Value

Builder