laravel-firebase
laravel-firebase copied to clipboard
get method issue in Laravel 5
Here is the error
FatalErrorException in Handler.php line 25:
Uncaught TypeError: Argument 1 passed to App\Exceptions\Handler::report() must be an instance of Exception, instance of TypeError given, called in D:\Software & Games\Laravel\Projects\thetacab\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php on line 73 and defined in D:\Software & Games\Laravel\Projects\thetacab\app\Exceptions\Handler.php:25
Stack trace:
#0 D:\Software & Games\Laravel\Projects\thetacab\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(73): App\Exceptions\Handler->report(Object(TypeError))
#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(TypeError))
#2 {main}
thrown
And here is my route Route::get('firebase', function(){
Firebase::get('https://test-de8cb.firebaseio.com/name');
});