ali_254 Posted July 5, 2022 Share Posted July 5, 2022 hi.I used this code in my program dd(auth()->guard('admin')->user()); When I write this code in the blade files, it returns a value. But if I write it in the controllers, it returns an empty value! it's strange! Can anyone tell me what the problem is? I'm confused! Quote Link to comment https://forums.phpfreaks.com/topic/315000-returning-a-true-or-null-value-in-two-different-situations/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.