Skip to content
Advertisement

Need assistance with regular expression [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 1 year ago. Improve this question I have many strings enclosed within a function called trans. In some places it could be trans(‘Hello’) or trans(“Hello”) I

Laravel store Files from API with specific folder creation

My goal is create Laravel API to store Files, from VSTO POST request. But first need figure out how create unigue folders in laravel where to file store. From VSTO sending POST with File and parameter id_message. How to set Laravel Controller to store file as storage/app/MyFiles/{id_message}/file, and parametr id_message wile file_path save to database table ? FileController Update for

Laravel if statement in query

I am beginner php developer. I have this code: I have error: “message”: “SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘== 1), client_company_infos.name, concat(client_infos.first_name, ” “, client_i’ at line 1 (SQL: select clients.*, if((client_company_infos.name !=

Session gets destroyed after page refresh

Login.php Index.php I made a Login script which opens, if the password is correct, the Index.php site. When first opening the Index.php site via the Login script everything works fine and the session is set. But after I refresh the page the sessions gets destroyed and is not set. So how can I save the session, so it’s not getting

Search for an item in inner array

I have an assoc array looking like this (the data comes from user input, this is just an example) How would I look for a specific startingDate for example if I don’t want to loop over every ID. Basically I’m looking for a way to do something like $eventDates[*][“startingDate”] Answer You can achieve this a few different ways, one being

Advertisement