Skip to content
Advertisement

Tag: laravel

Session sweeping lottery

Can someone explain what a session sweeping lottery is? I’ve attached the default session config file for the Laravel framework. Questions: 1. It says that some session drivers must manually sweep their storage location. Could someone describe this process and why it is necessary? What session drivers require this action? 2. Why is a lottery necessary? If say some form

How to get all pending jobs in laravel queue on redis?

The queue:listen was not run on a server, so some jobs were pushed (using Redis driver) but never run. How could I count (or get all) these jobs? I did not find any artisan command to get this information. Answer If someone is still looking for an answer, here is the way I did it: $connection is the Redis’ connection

Laravel: find if a pivot table record exists

I have two models which are joined by a pivot table, User and Task. I have a user_id and a task_id. What is the neatest way to check whether a record exists for this combination of user and task? Answer You have a couple options depending on your situation. If you already have a User instance and you want to

Laravel: Error InvalidArgumentException

I’ upload the project from localhost to my dedicated server and after so many problems, finally some pages works domain.com | domain.com/home | domain.com/allsites etc.. But now, the routes “domain.com/site/create” “domain.com/site/ID/manage”, “domain.com/site/ID/edit” not found, i get this error, why? InvalidArgumentException in FileViewFinder.php line 137: View [Site.create] not found. in FileViewFinder.php line 137 at FileViewFinder->findInPaths(‘Site.create’, array(‘/……/resources/views’)) in FileViewFinder.php line 79 at

Advertisement