D
D
Denis Rybin2014-12-16 20:38:24
Laravel
Denis Rybin, 2014-12-16 20:38:24

Can't connect my package to laravel?

Hello, help, I can not understand what's wrong.
I decided to make my own package for laravel. I did everything according to the documentation:
1. launched the command php artisan workbench MyName/User --resources The
package was created.
2. Added service provider to app/config/app.php
'providers => [
...
'MyName\User\UserServiceProvider'
];
3. run php artisan dump-autoload
An error pops up that my service provider class is not found
The browser also has an error that my service provider class is not found.
Tried both locally and hosting the same thing. laravel 4.2
what's wrong? Tell.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Brezhnev, 2014-12-16
@RybinDen

You need to go to the directory of your package where the composer.json file is located and execute php composer update in the console

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question