PHP Class Student\Billet\BilletRepository

Show file Open project: resultsystems/school

Protected Properties

Property Type Description
$model

Public Methods

Method Description
__construct ( Illuminate\Container\Container $app )
all ( array $columns = ['*'], array $with = [], array $orders = [], integer $limit = 50, integer $page = 1 ) : Illuminate\Pagination\LengthAwarePaginator Get all item of model.
get ( integer $id, array $columns = ['*'], array $with = [], array $load = [] ) : Domains\BaseModel Get item of model by id :id.
makeModel ( ) : Model makeModel.
model ( )
update ( array $data, integer $id ) : Domains\BaseModel Update item of model.

Method Details

__construct() public method

public __construct ( Illuminate\Container\Container $app )
$app Illuminate\Container\Container

all() public method

Get all item of model.
public all ( array $columns = ['*'], array $with = [], array $orders = [], integer $limit = 50, integer $page = 1 ) : Illuminate\Pagination\LengthAwarePaginator
$columns array
$with array
$orders array
$limit integer
$page integer
return Illuminate\Pagination\LengthAwarePaginator

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

makeModel() public method

makeModel.
public makeModel ( ) : Model
return Illuminate\Database\Eloquent\Model

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

Property Details

$model protected property

protected $model