When using php artisan migrate and there is an error (I just attempted to migrate with TestDummy without having it installed), we first receive the fatal error PHP Fatal error: Class 'Laracasts\TestDummy\Factory' not found in, then a stack trace, then our symphony FatalErrorException
And then we get, instead of reporting the error to Rollbar, PHP Fatal error: Call to a member function report_php_error() on null in /directory/to/repository/vendor/rollbar/rollbar/src/rollbar.php on line 61.
So how can we pull in Rollbar even for artisan commands? (since the App is never loaded)
When using
php artisan migrate
and there is an error (I just attempted to migrate with TestDummy without having it installed), we first receive the fatal errorPHP Fatal error: Class 'Laracasts\TestDummy\Factory' not found in
, then a stack trace, then our symphonyFatalErrorException
And then we get, instead of reporting the error to Rollbar,
PHP Fatal error: Call to a member function report_php_error() on null in /directory/to/repository/vendor/rollbar/rollbar/src/rollbar.php on line 61
.So how can we pull in Rollbar even for artisan commands? (since the
App
is never loaded)