Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

laravel auth issue


there seems to be a laravel authentication issue.... i.e. when I log out of the app the app is not returning to login page and I am returned with these types of errors 'Attempt to read property "name" on null'

are you aware of such authentication error in laravel and what is the plan to resolve this problem?


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (8)


Hi,

Thank you for bringing this to our attention. We will promptly investigate and take the necessary actions to resolve the issue.

Thanks



Thanks for the reply, when can i expect the issue to be resolved?



Can I get an estimate on this please??



Hi,

Are you working on the Laravel starterkit or Laravel app? May I know how the error message 'Attempt to read property "name" on null' was displayed?
We tried to find the issue, but the logout is working as expected.

Could you please send a screenshot? You may use imgbb.com.

Thanks



I am working with the Laravel App. For example if I am on a view page and the session / auth expires and then I come to refresh the page, in former metronic applications the app returned to the login page because it was recognised the session had expired. Now what is happening is the app remains of the same page and contains errors because the auth has has expired. I.e. I am getting this error:

Attempt to read property "avatarUrl" on null
https://flareapp.io/share/OmVg8rAP#F88

What I would like to know is why at this stage when the session has expired, the app does not return to the login page like it did on previous versions.

Please let me know your thoughts



Hi

Is this issue happens on your custom route and page?

Could you please verify if your page route has 'auth' middleware?


Route::middleware("auth")->group(function () {
//...


Thanks



Many thanks for your assistance, the middleware auth is exactly what the problem was. great help from you as always!



Great. Glad it worked. Feel free to let us know if you need more help.

Thanks


Your Support Matters!

We will highly appreciate your Metronic Review on Themeforest.
Please go to Themeforest Downloads page, select Metronic & leave your feedback.
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(