Skip to content
Advertisement

Tag: laravel

Display all images one by one laravel

On the backend side, my pictures are loaded normally, but I have problems with displaying them on the front My Model I am trying to display all the images on the page like this My page.blade.php But I am getting an error: Undefined variable: $images I need to declare this variable with an array of pictures somewhere on the client

Issue with DocuSign sending Envelopes

I recently changed my DocuSign integration to use the JWT OAuth flow. To achieve this I have a few classes. OAuth Client Signature Client Service Then, in my constructors where I want to use it I’m doing Finally, I use it like so But I get an error that reads DocuSigneSignClientApiException: Error while requesting server, received a non successful HTTP

laravel relationship not loading

I’ve got a Product and a Category models: In my controller, I’m retrieveing all products and wanted to return the category object the product belongs to in the response, so I’m doing: and my resource looks like: but the response I’m getting is: I tried loading the relationship differently: but the result is the same. It seems that the relationship

How to show round figure number in php?

I have a variable called $totalResults which has dynamic values, depend on database entries. I need to show a limit like if $totalResults has 154 results then I want show that 154 out of 500. But I want it dynamically, like if the result cross 500, example the result value is 514, then it’ll show like 514 out of 1000.

Can’t insert data on my database from laravel

When I try to insert data into my database, Laravel does not insert the records, but it is strange because when I migrate the tables to be able to perform the database, Laravel creates them without any problem, I do not know what I can be doing wrong if the migration run but stored no Route: Controler: Template: Answer The

Advertisement