I installed Laravel 5 and went to http://localhost/learning_Laravel/app/Http/routes.php. When I open it in the browser I get "Fatal error: Class 'Route' not found in C:\xampp\htdocs\learning_Laravel\app\Http\routes.php on line 15"
Here is the initial code:
<?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');
});
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire