findAllWithRelationHavePublishedVideoLimit() public méthode

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