model = app(Vehicle::class); if ($this->isExport()) { // Determine if the user is authorized to export the data. return $this->can('export'); } if ($this->isImport()) { // Determine if the user is authorized to import the data. return $this->can('import'); } } }