PHP Class App\Repositories\BaseRepository

Show file Open project: rappasoft/laravel-5-boilerplate Class Usage Examples

Public Methods

Method Description
delete ( Model $model ) : boolean | null
forceDelete ( Model $model ) : boolean | null
restore ( Model $model ) : boolean | null
save ( Model $model ) : boolean
update ( Model $model, array $input ) : boolean

Protected Methods

Method Description
query ( ) : mixed

Method Details

delete() public method

public delete ( Model $model ) : boolean | null
$model Illuminate\Database\Eloquent\Model
return boolean | null

forceDelete() public method

public forceDelete ( Model $model ) : boolean | null
$model Illuminate\Database\Eloquent\Model
return boolean | null

query() protected method

protected query ( ) : mixed
return mixed

restore() public method

public restore ( Model $model ) : boolean | null
$model Illuminate\Database\Eloquent\Model
return boolean | null

save() public method

public save ( Model $model ) : boolean
$model Illuminate\Database\Eloquent\Model
return boolean

update() public method

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