Skip to content
Advertisement

Tag: laravel

SESSION in laravel for page protection

I want to make a Login Registration system in laravel 8. In which User when login only can access a particular page else redirect to login page. I did this like that. what’s wrong in it. //Login Code //Session Code Answer you can use the default authentication in laravel8 using laravel application Jetstream starter kit and use the auth() middleware

Is there a way to dynamically switch default dashboards in Nova

What I am looking for: A way to potentially load a appNovaDashboardsDashboardExample as the default dashboard. Problem Nova comes with a default dashboard which is build in the NovaServiceProvider and gives you the possibility to add additional dashboards using the dashboards() function. When using this dashboards() function, you initialize additional dashboards instead of loading in a different dashboard as the

Problem on check condition on laravel php

I have a problem on my laravel code. I want to check condition and show up using dd my code here. but my result here not acceptable. it should be true. What’s wrong on my code? How can I solve it? Answer I round it before comparison is ok now. Thank @El_Vanja

Laravel list with unique values and count of values

Im trying show unique values from database with count of them in table view. But i have problem count them. my goal is show in table my controller dd($userList) show 1 john and 1 smith dashboard.blade error : Call to undefined method stdClass::count() Answer Use this code: And in your blade use this code:

my all value is not showing in view, what can i d [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed last year. Improve this question This

Advertisement