PHP Class App\Repositories\Eloquent\NewsRepositoryEloquent

Inheritance: extends Prettus\Repository\Eloquent\BaseRepository, implements App\Contracts\Repositories\NewsRepository
Show file Open project: qloog/laravel5-backend

Public Methods

Method Description
boot ( ) Boot up the repository, pushing criteria
create ( array $input ) : News 创建
model ( ) : string Specify Model class name
update ( array $input, $id ) : boolean 更新

Method Details

boot() public method

Boot up the repository, pushing criteria
public boot ( )

create() public method

创建
public create ( array $input ) : News
$input array
return app\models\News

model() public method

Specify Model class name
public model ( ) : string
return string

update() public method

更新
public update ( array $input, $id ) : boolean
$input array
$id
return boolean