src/Http/Controllers/Adminarea/GuardiansController.php
public function import(Guardian $guardian, ImportRecordsDataTable $importRecordsDataTable)
    {
        return $importRecordsDataTable->with([
            'resource' => $guardian,
            'tabs' => 'adminarea.guardians.tabs',
            'url' => route('adminarea.guardians.stash'),
            'id' => "adminarea-attributes-{$guardian->getRouteKey()}-import-table",
        ])->render('cortex/foundation::adminarea.pages.datatable-dropzone');
    }
public function import(Guardian $guardian, ImportRecordsDataTable $importRecordsDataTable)
    {
        return $importRecordsDataTable->with([
            'resource' => $guardian,
            'tabs' => 'adminarea.guardians.tabs',
            'url' => route('adminarea.guardians.stash'),
            'id' => "adminarea-attributes-{$guardian->getRouteKey()}-import-table",
        ])->render('cortex/foundation::adminarea.pages.datatable-dropzone');
    }
public function import ( Guardian $ guardian , ImportRecordsDataTable $ importRecordsDataTable ) { return $ importRecordsDataTable -> with ( [ 'resource' => $ guardian , 'tabs' => 'adminarea.guardians.tabs' , 'url' => route ( 'adminarea.guardians.stash' ) , 'id' => "adminarea-attributes-{$guardian->getRouteKey()}-import-table" , ] ) -> render ( 'cortex/foundation::adminarea.pages.datatable-dropzone' ) ; }
Import guardians.

@param \Cortex\Auth\Models\Guardian                         $guardian
@param \Cortex\Foundation\DataTables\ImportRecordsDataTable $importRecordsDataTable

@return \Illuminate\View\View
Import guardians .