In Laravel 5.2 fresh installation, i'm trying to get the Authentication features (Register/ Login/ Logout/ etc), by following the documentations. Here are the steps i made.
# php artisan make:auth
Created View: /var/www/html/example.com/resources/views/auth/login.blade.php Created View: /var/www/html/example.com/resources/views/auth/register.blade.php Created View: /var/www/html/example.com/resources/views/auth/passwords/email.blade.php Created View: /var/www/html/example.com/resources/views/auth/passwords/reset.blade.php Created View: /var/www/html/example.com/resources/views/auth/emails/password.blade.php Created View: /var/www/html/example.com/resources/views/layouts/app.blade.php Created View: /var/www/html/example.com/resources/views/home.blade.php Created View: /var/www/html/example.com/resources/views/welcome.blade.php Installed HomeController. Updated Routes File. Authentication scaffolding generated successfully! # cat app/Http/routes.php
<?php use Illuminate\Http\Request; Route::group(['middleware' => ['web']], function () { Route::get('/', function () { return view('welcome'); }); }); Route::group(['middleware' => 'web'], function () { Route::auth(); Route::get('/home', 'HomeController@index'); }); # php artisan migrate:install
Migration table created successfully. # php artisan migrate
Migrated: 2014_10_12_000000_create_users_table Migrated: 2014_10_12_100000_create_password_resets_table (Here i'm not sure why it is dated as "2014", anyway.)
After this, i can already see below tables get created in my MySQL database:
- migrations
- password_resets
- users
[ So i assume the Database connection is also correct! ]
[ And also the Home page with "Login" "Register" "Login Form" etc are appeared, properly. ]
Problem
Now, when i go to /register there's a nice Registration Form already appeared. But when i fill-in and SUBMIT, nothing happens. (It keeps routed back to the /register page as nothing happened.)
Then when i checked from Apache Access Logs, the request is shown as "GET". I think this is supposed to be a "POST". Am i right?
(And nothing in the Error Logs as well)
What is happening please?