Learner\Repositories\SeriesRepositoryInterface::findAllWithRelationHavePublishedVideo PHP Method

findAllWithRelationHavePublishedVideo() public method

Return series and relation. (video is published.)
public findAllWithRelationHavePublishedVideo ( ) : Illuminate\Database\Eloquent\Collection | Series[]
return Illuminate\Database\Eloquent\Collection | Learner\Models\Series[]
    public function findAllWithRelationHavePublishedVideo();

Usage Example

 /**
  * Route series.
  *
  * /series get
  *
  * @return \Illuminate\View\View
  */
 public function index()
 {
     $series = $this->series->findAllWithRelationHavePublishedVideo();
     return view('series.index', compact('series'));
 }