Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class Nwidart\Modules\Repository does not exist #570

Closed
chiragpipariya opened this issue Aug 14, 2018 · 8 comments
Closed

Class Nwidart\Modules\Repository does not exist #570

chiragpipariya opened this issue Aug 14, 2018 · 8 comments

Comments

@chiragpipariya
Copy link
Contributor

Summary of issue

ReflectionException (-1)
Class Nwidart\Modules\Repository does not exist

Steps to reproduce

We installation fresh version 4, try on login it's not working.
i change setting below from localisation file "/config/laravellocalization.php"
'hideDefaultLocaleInURL' => true,
than i will try to login it's working
but
while i'm click to admin "Configure your website"

download

I got error below error screenshot

screenshot

System Details

  • Operating System : Ubuntu
  • PHP Version : 7.1
  • Laravel Version : as per Asgard installed during installation.
  • Asgardcms/Platform version : 4
@nWidart
Copy link
Member

nWidart commented Aug 20, 2018

Thanks for reporting. I'll see if I can fix it at some point. It's an easy fix so don't hesitate to contribute. 👍

@chiragpipariya
Copy link
Contributor Author

sure

@chiragpipariya
Copy link
Contributor Author

chiragpipariya commented Sep 4, 2018

@nWidart please this error screenshot

latest update 3.6 i got this on click setting tabs.

whoops there was an error

@mikemand
Copy link
Contributor

mikemand commented Sep 4, 2018

@nWidart
Copy link
Member

nWidart commented Sep 4, 2018

That's strange asgardcms v3 should still be in v2 of laravel-modules.

@mikemand
Copy link
Contributor

mikemand commented Sep 4, 2018

Aye. The problem comes from here:

return app(Repository::class)->find($module);

The class Nwidart\Modules\Repository is not actually bound to Laravel's container, only the short name modules.

@nWidart
Copy link
Member

nWidart commented Sep 5, 2018

Hm interesting, because it used to be:

$router->bind('module', function ($module) {
    return app(\Nwidart\Modules\Contracts\RepositoryInterface::class)->find($module);
});

This one works though 👍

@nWidart nWidart closed this as completed in 088773f Sep 5, 2018
@nWidart
Copy link
Member

nWidart commented Sep 5, 2018

Released as 3.6.1 https://github.com/AsgardCms/Platform/releases/tag/3.6.1

Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants