PHP Class App\Repositories\Recipe\EloquentRecipe

Inheritance: extends app\repositories\AbstractEloquentRepository, implements RecipeInterface
Afficher le fichier Open project: ngmy/webloyer Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Model $recipe ) : void Create a new repository instance.
byPage ( integer $page = 1, integer $limit = 10 ) : Illuminate\Pagination\LengthAwarePaginator Get paginated recipes.

Method Details

__construct() public méthode

Create a new repository instance.
public __construct ( Model $recipe ) : void
$recipe Illuminate\Database\Eloquent\Model
Résultat void

byPage() public méthode

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
Résultat Illuminate\Pagination\LengthAwarePaginator