Skip to content

Tag: laravel

Laravel queued jobs are not retrying when they fail

The problem I’m dispatching a job to execute an action that needs a resource ready to be correctly executed, so if it fails it needs to be retried after some time. But what really happens is that if it fails, it’s not executed ever again. I’m using Supervisor to manage the queue and the data…

Getting Values from Laravel drop-down form

I have a simple drop-down in a form. The form is: In the view function in the controller the array is: The store function in the controller is: The method, however, stores the position of the values instead of the value itself. So, if I do a dd(request()->all());, I get: How can I get the values instead of…

Avoid Laravel redirect after validation

I’m making a simple validation on my Laravel controller: My problem is that this validation redirects me to the home if fails, and i’m making the request via AJAX, i know that Laravel detects when a request is via Ajax, but it only works if is a normal request (the typical request in which i send …

Array of images in laravel

While I am retrieving array of images I get this error: Trying to get property ‘images’ of non-object (View: C:xampphtdocsuserresourcesviewsproductview.blade.php) view blade: Answer you need to clean and fix your code: your controller function: in blade file: