PHP Class Domain\Repositories\BaseRepository

Author: Leandro Henrique ([email protected])
Inheritance: use trait Domain\Repositories\Traits\DeleteTrait, use trait Domain\Repositories\Traits\GetsTrait, use trait Domain\Repositories\Traits\RestoreTrait, use trait Domain\Repositories\Traits\StoreTrait, use trait Domain\Repositories\Traits\UpdateTrait
Mostrar archivo Open project: resultsystems/school

Protected Properties

Property Type Description
$model

Public Methods

Method Description
__construct ( Illuminate\Container\Container $app )
count ( ) : integer Count.
getModel ( ) : Model Get model.
makeModel ( ) : Model makeModel.
max ( string $field = 'id' ) : integer Max.
min ( string $field = 'id' ) : integer Min.
model ( )
onlyMe ( $field = 'user_id', $owner_id = null ) me.
onlyTrashed ( ) Only trashed.
sum ( string $field = 'id' ) : integer Sum.
withTrashed ( ) Add trashed.
withoutTrashed ( ) Without trashed.

Method Details

__construct() public method

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

count() public method

Count.
public count ( ) : integer
return integer

getModel() public method

Get model.
public getModel ( ) : Model
return Illuminate\Database\Eloquent\Model

makeModel() public method

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

max() public method

Max.
public max ( string $field = 'id' ) : integer
$field string
return integer

min() public method

Min.
public min ( string $field = 'id' ) : integer
$field string
return integer

model() abstract public method

abstract public model ( )

onlyMe() public method

me.
public onlyMe ( $field = 'user_id', $owner_id = null )

onlyTrashed() public method

Only trashed.
public onlyTrashed ( )

sum() public method

Sum.
public sum ( string $field = 'id' ) : integer
$field string
return integer

withTrashed() public method

Add trashed.
public withTrashed ( )

withoutTrashed() public method

Without trashed.
public withoutTrashed ( )

Property Details

$model protected_oe property

protected $model