src/Http/Controllers/Adminarea/PagesMediaController.php
public function index(Page $page, MediaDataTable $mediaDataTable)
    {
        return $mediaDataTable->with([
            'resource' => $page,
            'tabs' => 'adminarea.pages.tabs',
            'id' => "adminarea-pages-{$page->getRouteKey()}-media-table",
            'url' => route('adminarea.pages.media.store', ['page' => $page]),
        ])->render('cortex/foundation::adminarea.pages.datatable-dropzone');
    }
public function index(Page $page, MediaDataTable $mediaDataTable)
    {
        return $mediaDataTable->with([
            'resource' => $page,
            'tabs' => 'adminarea.pages.tabs',
            'id' => "adminarea-pages-{$page->getRouteKey()}-media-table",
            'url' => route('adminarea.pages.media.store', ['page' => $page]),
        ])->render('cortex/foundation::adminarea.pages.datatable-dropzone');
    }
public function index ( Page $ page , MediaDataTable $ mediaDataTable ) { return $ mediaDataTable -> with ( [ 'resource' => $ page , 'tabs' => 'adminarea.pages.tabs' , 'id' => "adminarea-pages-{$page->getRouteKey()}-media-table" , 'url' => route ( 'adminarea.pages.media.store' , [ 'page' => $ page ] ) , ] ) -> render ( 'cortex/foundation::adminarea.pages.datatable-dropzone' ) ; }
List all page media.

@param \Cortex\Foundation\DataTables\MediaDataTable $mediaDataTable
@param \Cortex\Pages\Models\Page                    $page

@return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse
List all page media .