Impossible to use within Nova Actions
lazerg opened this issue · 2 comments
lazerg commented
Hello. Your package is great.
I have a big form in an action and I wanted to use Tabulation.
class NovaActivateCompanyAction extends Action
{
use InteractsWithQueue, Queueable;
public function fields(NovaRequest $request): array
{
return [
Tabs::make('Company details', [
Tab::make('User details', [
// ...
]),
Tab::make('Register form #1', [
// ...
]),
]),
];
}
After having such action, I am getting this error: Method Eminiarts\\Tabs\\Tabs::authorizedToSee does not exist.
{
"message": "Method Eminiarts\\Tabs\\Tabs::authorizedToSee does not exist.",
"exception": "BadMethodCallException",
"file": "/var/www/app/vendor/laravel/framework/src/Illuminate/Macroable/Traits/Macroable.php",
"line": 113,
}
mstaack commented
It's not supposed to be used insight nova actions. Tabs is for resources.
lazerg commented
It's not supposed to be used insight nova actions. Tabs is for resources.
I know it 😃. But is there any hack to overcome this? Because I need it in actions.
If there is absolutely no way of it, let me know, i will close the issue.