Skip to content

Tag: laravel

How to get file input name in Laravel?

I am using a jQuery form builder to create any kind of form input. The issue I had, in particular, is when I create multiple file inputs, the input name is generated randomly by default, the format is something like “file-0000-0”. I would like to get the input name but since it’s random, I c…

Laravel Join If Column Value Not Null

I try this method. I want to select discount if withCode value False. I try in where clause but in this method, if not false; I can’t access product. I want to select discount if withCode table FALSE. Else, I don’t want to select it Answer I solved with this codes;

Laravel Mail Connection could not be established Mailhog

I’ve installed Laravel Breeze and the ‘forgot password’ functionallity does not work. Login and registrer both work well, so I guess there is something wrong at sending the recovery email. This is the displayed error: at Symfony  Component  Mailer  Exception  TransportException. and here is …

Laravel 9.x Contact form can’t connect to class

I’m trying to make a contact form. Main idea is user will send data, I will save the data to database, I will get the data from database, I will send the data as an email. I was following a tutorial -> https://www.positronx.io/laravel-contact-form-example-tutorial/ When I tried to reach classes on my…

Getting rid of numbers in a json response ( LARAVEL 9 )

i’m having some problems with my json response. When I make an api call from a user (id:1) it returns the response well, but if i change the user (f.e id:2) it returns it with some identifiers on it. Any idea? Response from id:1 Response from id:2 Thanks! EDIT 1 This is how I am getting the response: An…