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

@param \Cortex\Tenants\Models\Tenant                $tenant
@param \Cortex\Foundation\DataTables\MediaDataTable $mediaDataTable

@return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse
List tenant media .