I'm beginner at Laravel.
I wanted to use:
Auth::login(users::find(1))
Result: Type error:
Argument 1 passed to Illuminate\Auth\SessionGuard::login() must be an instance of Illuminate\Contracts\Auth\Authenticatable, instance of App\users given
I changed the model to extend Authenticatable instead of Model. Also I changed the Auth statement to:
Auth::login(users::where('id', 1))
Result: Type error:
Argument 1 passed to Illuminate\Auth\SessionGuard::login() must implement interface Illuminate\Contracts\Auth\Authenticatable, instance of Illuminate\Database\Eloquent\Builder given
I wonder if you would help me, 'Appreciation'