public function index()
    {
        $model = $this->modelFullName;
        $collection = $model::all();
        if($collection->isEmpty()) throw new NotFoundException('There Are No Resources Named "' . $this->getResourceName() . '" Yet');
        return $collection;
    }
public function index()
    {
        $model = $this->modelFullName;
        $collection = $model::all();
        if($collection->isEmpty()) throw new NotFoundException('There Are No Resources Named "' . $this->getResourceName() . '" Yet');
        return $collection;
    }
public function index ( ) { $ model = $ this -> modelFullName ; $ collection = $ model :: all ( ) ; if ( $ collection -> isEmpty ( ) ) throw new NotFoundException ( 'There Are No Resources Named "' . $ this -> getResourceName ( ) . '" Yet' ) ; return $ collection ; }
Return a listing of the resource.

@return \Illuminate\Database\Eloquent\Collection
Return a listing of the resource .