PHP 클래스 App\Repositories\Recipe\EloquentRecipe

상속: extends App\Repositories\AbstractEloquentRepository, implements RecipeInterface
파일 보기 프로젝트 열기: ngmy/webloyer 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Model $recipe ) : void Create a new repository instance.
byPage ( integer $page = 1, integer $limit = 10 ) : Illuminate\Pagination\LengthAwarePaginator Get paginated recipes.

메소드 상세

__construct() 공개 메소드

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

byPage() 공개 메소드

Get paginated recipes.
public byPage ( integer $page = 1, integer $limit = 10 ) : Illuminate\Pagination\LengthAwarePaginator
$page integer Page number
$limit integer Number of recipes per page
리턴 Illuminate\Pagination\LengthAwarePaginator