findAllWithRelationHavePublishedVideoLimit() public method

Limit series and relation for home page. (video is published.)
public findAllWithRelationHavePublishedVideoLimit ( $limit = 4 ) : Illuminate\Database\Eloquent\Collection | Series[]
return Illuminate\Database\Eloquent\Collection | Learner\Models\Series[]
示例#1
0
 /**
  * Home page.
  *
  * / get
  *
  * @return \Illuminate\View\View
  */
 public function index()
 {
     $series = $this->series->findAllWithRelationHavePublishedVideoLimit();
     return view('pages.index', compact('series'));
 }