Support the ongoing development of Laravel.io →
Authentication Security

I am trying a small signup and login setup.In that application i coded like once user signed up he will be automatically logged into app using Auth::loginUsingId($user->id) it works in signup module perfectly.Perhaps in the login module it is not logging in,no error logs too..

#my login controller :

  if(Auth::attempt(array('email' => Input::get('email'),'password'=>Input::get('password') )))
      {
          echo "done";
      }

#My login model :

     <?php namespace App;

    use Illuminate\Auth\Authenticatable;
    use Illuminate\Database\Eloquent\Model;
   use Illuminate\Auth\Passwords\CanResetPassword;
   use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
    use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
   class user extends Model implements AuthenticatableContract, CanResetPasswordContract{
     use Authenticatable, CanResetPassword;

     //
        protected $table="user";

#my config/auth

'driver' => 'eloquent',



'model' => App\user::class,

#system using mac

#no env for auth please help me to solve ? anything to be added on env ?

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.