I have a few questions regarding the docusign api. First of all, I want to build an application, where users can sign a document, through docusign. My questions are, is the OAuth token required for …
Tag: laravel
How do I do Laravel form validation when value of one field decides validity of the other field
I have a form. Type field is a drop-down and has only two possible values. Second field is bcode. E.g. if table has data like- ID TYPE BCODE 1 1 2 2 1 3 3 2 2 4 1 4 5 …
Xdebug error on local environment [Failed loading /usr/local/lib/php/pecl/20190902/xdebug.so:]
I want to use Xdebug on the vscode. I tried it while reading the official documentation, but I couldn’t get it to work and got the following error. php –ini Has anyone else encountered the same problem? Thank you. Answer I got this working by doing something similar to this: https://stackoverflow.com/a/…
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…
How to connect wss via ReactPHP components
I have a URI that works well with a js implementation, built as: “wss://domain” When I want to implement a subscriber for this socket as below: $loop = Factory::create(); $…
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:
Use different language at laravel controller
I have a choice of language on the site, through {{ trans(‘index.main’) }}, all good. But I have a page with payment on my site, and for a user from Russia you need to display the Russian version of …
Preserving leading zeros in Blade view
I am writing a Laravel 7 application using Blade views. One of my MySQL tables contains the clients tools which have an id that follows no specific pattern (restructuring these ids is out of …