PHP 클래스 App\Repositories\Setting\EloquentSetting

상속: extends App\Repositories\AbstractEloquentRepository, implements App\Repositories\Setting\SettingInterface
파일 보기 프로젝트 열기: ngmy/webloyer

공개 메소드들

메소드 설명
__construct ( Model $setting ) : void Create a new repository instance.
byType ( $type ) : Model Get a model by setting type. If a model does not exist, create a new model.
updateByType ( array $data ) : boolean Update an existing model has a same type.

메소드 상세

__construct() 공개 메소드

Create a new repository instance.
public __construct ( Model $setting ) : void
$setting Illuminate\Database\Eloquent\Model
리턴 void

byType() 공개 메소드

Get a model by setting type. If a model does not exist, create a new model.
public byType ( $type ) : Model
리턴 Illuminate\Database\Eloquent\Model

updateByType() 공개 메소드

Update an existing model has a same type.
public updateByType ( array $data ) : boolean
$data array Data to update a model
리턴 boolean