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:

enter image description here

how attach own users model request? instead of using built in user?


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -