eminiarts / nova-tabs

Laravel Nova Tabs Package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Impossible to use within Nova Actions

lazerg opened this issue · comments

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,
}
commented

It's not supposed to be used insight nova actions. Tabs is for resources.

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.