Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

Add a module crud does not work #12

Closed
leorossi opened this issue Jun 23, 2016 · 4 comments
Closed

Add a module crud does not work #12

leorossi opened this issue Jun 23, 2016 · 4 comments

Comments

@leorossi
Copy link
Contributor

I am creating a new module with php artisan module:crud Line . The whole file tree is created and I can see the new menu entry in the backend. Although if I click on the "Lines" entry, I get this error

ReflectionException in Route.php line 280:
Class Quarx\Modules\Lines\Controllers\LineController does not exist
in Route.php line 280
at ReflectionMethod->__construct('Quarx\Modules\Lines\Controllers\LineController', 'index') in Route.php line 280
at Route->signatureParameters('Illuminate\Database\Eloquent\Model') in Router.php line 857
at Router->substituteImplicitBindings(object(Route)) in Router.php line 842
at Router->substituteBindings(object(Route)) in Router.php line 825
at Router->findRoute(object(Request)) in Router.php line 691
at Router->dispatchToRoute(object(Request)) in Router.php line 675
at Router->dispatch(object(Request)) in Kernel.php line 246
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Kernel.php line 132
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 99
at Kernel->handle(object(Request)) in index.php line 54 
@leorossi
Copy link
Contributor Author

I have solved this adding in composer.json

"autoload": {
    "psr-4": {
        "Quarx\\": "quarx/"
    }
}

@mlantz
Copy link
Member

mlantz commented Jun 23, 2016

Its in the docs is it not?

@leorossi
Copy link
Contributor Author

Yes, I followed the simple setup and it wasn't added automatically! 👍

@mlantz
Copy link
Member

mlantz commented Jun 23, 2016

ohh ok, I'll add it in the simple setup :)

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

No branches or pull requests

2 participants