Skip to content

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 …

SQL query JSON of MySQL 8.0 comes String instead of Array

I create a table in MySQL 8.0 as follows: It contains JSON type data, and I insert some data as: And I use php to visit the database, I wish to get value of “airline” as an Array. But it comes out a String, NOT an Array! This really annoys me, and JSON in MySQL is hard to understand. Answer