I'm using laravel 5.2 and I wrote this command to automatically add routes and views of authentication:
php artisan make:auth
Now I want to pass data to registration view but I don't find where to do that, I assume that it should be with a code like that:
Route::get('register', 'Auth\AuthController@showRegistrationForm');
But in routes.php
I have this:
Route::auth();
And in Auth\AuthController
there are only two methods:
register user class is in this file
\vendor\laravel\framework\src\Illuminate\Foundation\Auth\RegistersUsers.php
In laravel 5.2 in auth controller you see
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
and in this file see
use AuthenticatesUsers, RegistersUsers {
AuthenticatesUsers::redirectPath insteadof RegistersUsers;
AuthenticatesUsers::getGuard insteadof RegistersUsers;
}
and RegistersUsers class is in
\vendor\laravel\framework\src\Illuminate\Foundation\Auth\RegistersUsers.php
If you use phpstorm ide you can go to the class name and press ctrl + left click and php storm open your class .