Learner\Repositories\VideoRepositoryInterface::findAll PHP Method

findAll() public method

Return id as key and title as value.
public findAll ( ) : array
return array
    public function findAll();

Usage Example

 /**
  * Get all videos.
  *
  * /admin/videos get
  *
  * @return \Illuminate\Http\JsonResponse
  */
 public function index()
 {
     $videos = $this->videos->findAll();
     $series = $this->series->listIdAndTitle();
     return $this->responseJson(compact('videos', 'series'));
 }