src/Http/Controllers/Admin/ApiController.php
public function getAll(Request $request)
    {
        $this->authorize(MediasPolicy::PERMISSION_LIST);

        return $this->jsonResponseSuccess([
            'medias' => $this->media->all(
                $request->get('location', '/')
            ),
        ]);
    }
public function getAll(Request $request)
    {
        $this->authorize(MediasPolicy::PERMISSION_LIST);

        return $this->jsonResponseSuccess([
            'medias' => $this->media->all(
                $request->get('location', '/')
            ),
        ]);
    }
public function getAll ( Request $ request ) { $ this -> authorize ( MediasPolicy :: PERMISSION_LIST ) ; return $ this -> jsonResponseSuccess ( [ 'medias' => $ this -> media -> all ( $ request -> get ( 'location' , '/' ) ) , ] ) ; }
Get the the media files.

@param  \Illuminate\Http\Request  $request

@return \Illuminate\Http\JsonResponse
Get the the media files .