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