Свойство | Тип | Описание | |
---|---|---|---|
$model | The model to execute queries on. |
Метод | Описание | |
---|---|---|
__construct ( |
Create a new repository instance. | |
deleteById ( $id ) : boolean | null | Delete the instance from the database. | |
findById ( integer $id ) : |
Find instance by gived id. | |
findByIdWithRelation ( integer $id, string | array $relations ) : |
Find instance with relation by id. | |
getNew ( array $attributes = [] ) : |
Get a new instance of the model. |
public __construct ( |
||
$model | The model to execute queries on |
public deleteById ( $id ) : boolean | null | ||
Результат | boolean | null |