Ich habe gerade Laravel 5.2 Anwendung neu installiert, indem ich die Anleitung in der Dokumentation - https://laravel.com/docs/5.2#installing-laravel.Klasse 'Benutzer' nicht gefunden Laravel 5.2 direkt nach der Neuinstallation
Es ist nicht das erste Mal, dass ich das gemacht habe, aber ich hatte vorher kein Problem. Ich erhalte diese Fehlermeldung:
FatalThrowableError in routes.php Linie 15: Fatal error: Class 'User' nicht
gefundenich meine routes.php Ich habe nur:
Route::get('/', function() {
return view('welcome'); });
I kann nicht verstehen, wo das Problem sein kann. Ich habe diesen Fehler bei Neuinstallation, noch nie zuvor mit einem solchen Problem konfrontiert. Jede Hilfe wäre willkommen.
Hier ist ein Full-Screenshot mit Fehler: Screenshot with error
Fehlerliste:
FatalThrowableError in routes.php line 15:
Fatal error: Class 'User' not found
in routes.php line 15
at RouteServiceProvider->{closure}()
at call_user_func_array(object(Closure), array()) in Route.php line 158
at Route->runCallable(object(Request)) in Route.php line 137
at Route->run(object(Request)) in Router.php line 724
at Router->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
at Pipeline->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
at Pipeline->then(object(Closure)) in Router.php line 726
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 699
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 124
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 102
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 53
Voll routes.php Datei:
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/', function() {
return view('welcome');
});
Bitte geben Sie den Code, wo Sie versuchen, 'User' Modell –
Ich versuche nicht, überall zu verwenden, das ist der Poin. Ich habe gerade ein neues Projekt installiert. –
Hast du einen Stacktrace? – Daan