Hello everybody, I'm new with laravel and I never used any php framework, so I'm a little lost.
Actually, I have a mysql database withs few tables, and particularly the tables : user, userrole and role.
Thoses tables contain data.
Yesterday, I started on Laravel 5.2 and I see that there is a authentication service, I read the documentation and I did 'php artisan make:auth' but now :
Thank you a lot !!!
To authenticate users, check out the (documentation)[https://laravel.com/docs/5.2/authentication]
if (Auth::attempt(['email' => $email, 'password' => $password])) {
// Authentication passed...
return redirect()->intended('dashboard');
}
authentication service to uses my table user to make authentication instead of the table users
Regarding the table name, you change it in your (model)[https://laravel.com/docs/5.2/eloquent]
class Flight extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'my_flights';
Hope that helps.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community