simonhamp / laravel-nova-csv-import

The best CSV import component for Laravel Nova
https://novapackages.com/packages/simonhamp/laravel-nova-csv-import
MIT License
166 stars 76 forks source link

Not seeing anything after following the instructions of installing and registering inside the NovaServiceProvider #54

Open essamtariq123 opened 1 year ago

essamtariq123 commented 1 year ago

Hi, I have installed the package and followed the instructions on registering inside the tools on NovaServiceProvider.

I cant see the import button on any of my resources even when I add

public static $canImportResource = true;

I am using Laravel Nova 4. Thanks

simonhamp commented 1 year ago

@essamtariq123 It doesn't appear on your resources, it appears in the navigation as a whole separate section of your Nova admin

simonhamp commented 1 year ago

@essamtariq123 any luck finding it?

jgodstime commented 1 year ago

Same issue here, i cant find anything after following the steps

simonhamp commented 1 year ago

@jgodstime please share a screenshot of your Nova navigation and the code you've used to register the tool

liliced commented 1 year ago

I had the same issue. For me it was because I customized Nova's menu. As mentioned in Nova's doc

If you have customized Nova's main sidebar menu, a link to your tool will not automatically display in Nova's sidebar. You will need to manually define your tool's menu inside your custom Nova::mainMenu callback.

So in the Nova::mainMenu callback I added

MenuSection::make('CSV Import')
    ->path('/csv-import')
    ->icon('upload'),

and it solved it :)

simonhamp commented 1 year ago

Nice one @liliced! I will add this to the readme

@essamtariq123 @jgodstime have either/both of you also customised the Nova menu in this way? Could this fix also work for you?