Learner\Repositories\VideoRepositoryInterface::findAllPublishedPaginated PHP Method

findAllPublishedPaginated() public method

Paniaget the all videos.
public findAllPublishedPaginated ( integer $perPage = 50 ) : Illuminate\Contracts\Pagination\LengthAwarePaginator
$perPage integer
return Illuminate\Contracts\Pagination\LengthAwarePaginator
    public function findAllPublishedPaginated($perPage = 50);

Usage Example

Example #1
0
 /**
  * Get video by paginator.
  *
  * /videos get
  *
  * @return \Illuminate\View\View
  */
 public function index()
 {
     $videos = $this->videos->findAllPublishedPaginated(20);
     return view('videos.index', compact('videos'));
 }