public function index($locationId)
    {
        /** @noinspection PhpUndefinedMethodInspection */
        $location = Location::findOrFail($locationId);
        $this->authorize('view', $location);
        return $this->respondRelatedPhones($locationId, 'location');
    }
public function index($locationId)
    {
        /** @noinspection PhpUndefinedMethodInspection */
        $location = Location::findOrFail($locationId);
        $this->authorize('view', $location);
        return $this->respondRelatedPhones($locationId, 'location');
    }
public function index ( $ locationId ) { /** @noinspection PhpUndefinedMethodInspection */ $ location = Location :: findOrFail ( $ locationId ) ; $ this -> authorize ( 'view' , $ location ) ; return $ this -> respondRelatedPhones ( $ locationId , 'location' ) ; }
Produce a list of Phones related to a selected Location

@param $locationId string UUID of Location
@return \Illuminate\Http\Response List of Phones
Produce a list of Phones related to a selected Location