php - Laravel Own model for users on request property in middleware -
in middleware can access laravel's user model comes laravel via
if($request->user() === null) { echo 10000; }
but have own models, , own table of users. model users
not user
when try do:
if($request->users() === null) { echo 10000; }
i error:
how attach own users model request? instead of using built in user?
Comments
Post a Comment