I just want to consult problem that I want to resolve. I tried to make a condition with the admin authentication. Whenever the admin auth expires, it always gives me an error message. I tried to resolve it by putting a condition that when the auth is false, it will directly route you to the dashboard, but still received that error.
Whenever the admin auth expires, I have to type http://127.0.0.1:8000/admin/login for the nth time, and I don't want to see this error if I publish this website.
This is the Error
ErrorException
Attempt to read property "brand" on null (View: C:\xampp\htdocs\Advance Ecommerce Total Project.224\pro3\ecommerce\resources\views\admin\body\sidebar.blade.php)
Illuminate\Foundation\Bootstrap\HandleExceptions::handleError
C:\xampp\htdocs\Advance Ecommerce Total Project.224\pro3\ecommerce\resources\views/admin/body/sidebar.blade.php:37
@php