DEV Community

Discussion on: Laravel Nova: Adding custom buttons to resource toolbars

Collapse
 
palpalani profile image
Palaniappan

Hi,

I want try this tool,but when install i am getting the following namespace parser error.

In ToolServiceProvider.php line 3:

syntax error, unexpected '0x15f' (T_LNUMBER), expecting identifier (T_STRING)
Enter fullscreen mode Exit fullscreen mode
Collapse
 
emillkaakillme profile image
Emil

Fixed!
Just removed a vendor dir in project (rm -rf vendor)
Then run composer update

And try to create a new nova resourse-tool with following command:
php artisan nova:resource-tool my-vendor-name/custom-resource-toolbar

'my-vendor-name' should be in kebab case

It helped me, hope it will help you