Code Monkey home page Code Monkey logo

Comments (11)

milewski avatar milewski commented on May 30, 2024

which version of laravel are you using?

from collapsible-resource-manager.

GitanjaliCS avatar GitanjaliCS commented on May 30, 2024

laravel 6.13.1 and latest nova v2.10.1

from collapsible-resource-manager.

milewski avatar milewski commented on May 30, 2024

try running composer dump-autoload

from collapsible-resource-manager.

GitanjaliCS avatar GitanjaliCS commented on May 30, 2024

Yes have tried. Still it is not working

from collapsible-resource-manager.

milewski avatar milewski commented on May 30, 2024

it seems the package wasn't auto-discovered, you can add DigitalCreative\CollapsibleResourceManager\CollapsibleResourceManagerServiceProvider into your providers array inside your config\app.php

from collapsible-resource-manager.

milewski avatar milewski commented on May 30, 2024

OK never mind you have the wrong import it should be:

- App\Providers\CollapsibleResourceManager
+ DigitalCreative\CollapsibleResourceManager\CollapsibleResourceManager

from collapsible-resource-manager.

GitanjaliCS avatar GitanjaliCS commented on May 30, 2024

Ok I have written below code inside app.php

'providers' => [
DigitalCreative\CollapsibleResourceManager\CollapsibleResourceManagerServiceProvider::class,
],
'aliases' => [
//What should I write in this block?
],

from collapsible-resource-manager.

milewski avatar milewski commented on May 30, 2024

No need add the provider ... I read your first comment and I saw the provider keyword there so I assumed it was that issue.. but looking better you were trying to importing CollapsibleResourceManager but with the wrong namespace

from collapsible-resource-manager.

GitanjaliCS avatar GitanjaliCS commented on May 30, 2024

Still the same error
Check my code
public function tools()
{
return [
\Whitecube\NovaPage\NovaPageTool::make(),
new \ClassicO\NovaMediaLibrary\NovaMediaLibrary(),
new \Eminiarts\NovaPermissions\NovaPermissions(),
new CollapsibleResourceManager([
'navigation' => [
TopLevelResource::make([
'label' => 'Resources',
'resources' => [
\App\App\Nova\User::class
]
]),
]
])
];
];
}

from collapsible-resource-manager.

milewski avatar milewski commented on May 30, 2024

show me your entire file it should be DigitalCreative\CollapsibleResourceManager\CollapsibleResourceManager for the import

from collapsible-resource-manager.

GitanjaliCS avatar GitanjaliCS commented on May 30, 2024

Ok. I imported DigitalCreative\CollapsibleResourceManager\CollapsibleResourceManager in NovaServiceProvider.php
It works fine.
Thank you so much

from collapsible-resource-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.