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 ?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community