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

make:migration is not working #6446

Closed
wesleywillians opened this issue Nov 19, 2014 · 5 comments
Closed

make:migration is not working #6446

wesleywillians opened this issue Nov 19, 2014 · 5 comments

Comments

@wesleywillians
Copy link

When I run php artesan make:migration I got the error:

PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\Exceptions\ExceptionHandler does not exist' in /Users/wesley/Dropbox/Sites/vhosts-projects/tutorials/laravel/laravel5/storage/framework/compiled.php:493
Stack trace:
#0 /Users/wesley/Dropbox/Sites/vhosts-projects/tutorials/laravel/laravel5/storage/framework/compiled.php(493): ReflectionClass->__construct('App\Exceptions...')
#1 /Users/wesley/Dropbox/Sites/vhosts-projects/tutorials/laravel/laravel5/storage/framework/compiled.php(454): Illuminate\Container\Container->build('App\Exceptions...', Array)
#2 /Users/wesley/Dropbox/Sites/vhosts-projects/tutorials/laravel/laravel5/storage/framework/compiled.php(875): Illuminate\Container\Container->make('App\Exceptions...', Array)
#3 /Users/wesley/Dropbox/Sites/vhosts-projects/tutorials/laravel/laravel5/storage/framework/compiled.php(280): Illuminate\Foundation\Application->make('App\Exceptions...', Array)
#4 /Users/wesley/Dropbox/Sites/vhosts-projects/tutorials/laravel/laravel5/storage/framework/comp in /Users/wesley/Dropbox/Sites/vhosts-projects/tutorials/laravel/laravel5/storage/framework/compiled.php on line 493

PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\Exceptions\ExceptionHandler does not exist' in /Users/wesley/Dropbox/Sites/vhosts-projects/tutorials/laravel/laravel5/storage/framework/compiled.php:493
Stack trace:
#0 /Users/wesley/Dropbox/Sites/vhosts-projects/tutorials/laravel/laravel5/storage/framework/compiled.php(493)

@mvalim
Copy link
Contributor

mvalim commented Nov 19, 2014

Try to delete the storage/framework/compiled.php file and run php artizan optimize if you're still getting errors after that maybe try to pull the last changes of the laravel/laravel repository into your project, things are changing fast in L5, it's not ready for production yet.

@wesleywillians
Copy link
Author

Hi,

I got the error. In bootstrap/app.php.

$app->singleton(
'Illuminate\Contracts\Debug\ExceptionHandler',
'App\Exceptions\ExceptionHandler'
);

should be:

$app->singleton(
'Illuminate\Contracts\Debug\ExceptionHandler',
'App\Exceptions\Handler'
);

On Nov 19, 2014, at 3:33 PM, Matheus Valim Oliveira notifications@github.com wrote:

Try to delete the storage/framework/compiled.php file and run php artizan optimize if you're still getting errors after that maybe try to pull the last changes of the laravel/laravel repository into your project, things are changing fast in L5, it's not ready for production yet.


Reply to this email directly or view it on GitHub #6446 (comment).

@jonathanpmartins
Copy link

Your problem was that you don't follow the laravel/laravel updates!

You can follow laravel/laravel develop updates on this page: https://github.com/laravel/laravel/commits/develop

...or if you use ubuntu you can try to use Meld: https://apps.ubuntu.com/cat/applications/lucid/meld/ to diff between you current project and a new laravel installation. Meld helps me a lot!

@jonathanpmartins
Copy link

One more to close @GrahamCampbell

@GrahamCampbell
Copy link
Member

Thanks. :)

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

4 participants