Closed juanla closed 7 months ago
@juanla @extends('tablar::page') was designed to work only with Auth users. Did you get this error before login?
Yes, the error only happens when I am not logged :)
I though that I can make some public pages with this package, my fault! Thanks a lot for the quick help @takielias
Hello!
I just installed Tablar on a fresh laravel 10.x project. This project was empty except my Model classes. Looks like all default behaivour is working (login redirect, register, etc..)
Anyway, I want work with a public page, then created a "test.blade.php" with the example snippet in my views directory.
I have my HomeController with the next content:
And my web.php file with this content:
When I try enter on my homeController route I get this error:
Attempt to read property "name" on null
this error point in the "@endsection" line on my test.blade.php
I am missing some to config to use this page? When I sign in the app with a user, the template works fine. Maybe it's at the time loading my username on the navbar or something. Can I use this tablar to add some public pages?