Ad

Laravel-5.2 Login Give A Page Not Found

- 1 answer

I just installed a fresh copy of laravel 5.2. inserted the command: php artisan make:auth gone to the browser, typed : http://localhost/mywebsite/public/login. and i got this error: The webpage cannot be found. I am using WAMP.

Edit: This what it gives on Chrome:

Not Found

The requested URL /mywebsite/public/login was not found on this server.

Route.php:

<?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');
});


Route::get('test', function () {
    return  view('index') ;
});
Route::group(['middleware' => 'web'], function () {
    Route::auth();

    Route::get('/home', '[email protected]');
});

Edit 2:

After trying i only can access the first page, but if i try any other route it won't work.All routes return non existent pages.

Ad

Answer

Enable mod_rewrite in Apache for the default .htaccess file to work correctly.

Ad
source: stackoverflow.com
Ad