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 last year. Improve this question I have an array like below and its dynamic array. I want to create an anothe…
Insert a value at a NOT NULL column int in SQL Laravel Eloquent
I need to have this eloquent inserting data into my table with my first two columns, id, category_id be added with auto increment, specifically, the highest value + 1. my code above has the error: what can I at the “max()” for this to function as intended? any help would be appreciated thanks. Ans…
Add standalone PHP web application to existing site
There is a running website (on Bitrix CMS) located on the simplest shared hosting with cPanel. The task is to create a standalone little web application in PHP (for internal use in the company), which,…
Error Ajax and Laravel 500 (Internal Sever Error)
I’m attempting to use AJAX in Chrome, but it’s not working. This is my code, which you can see below. This is a copy of my web.php file. Route::view(‘menu’,’home.menu’,[‘categories’=> App…
how to access specific elements from a promise
in php I return to javascript the following: in my js file I have: this writes out to the console: how do I access the value ‘FOUND’ associated with the key ’email’? I’ve tried response[’email’], response.email and response[0][’email’] Answer The title is …
How can I generate a correct CRAM-MD5 response in PHP?
I wish to generate a CRAM-MD5 response for an SMTP server. I can see the theoretical details of how to do so here: CRAM-MD5 Implementation, but I’m looking for the specific PHP code in order to implement it. How can I implement this in PHP? Answer The following PHP code will produce a valid response for…
How can I overwrite my file images in laravel
I would like to ask how can i overwrite/update my images inside the form and store in database? I tried doing it but it is not working, i get the id correct but when i upload new image and text, it is not updating my old file. Below i attached my code. company controller edit modal for company I might
Target class [DatabaseSeedersRoleTableSeeder] does not exist
So I’ve been creating a CMS with Laravel and when I run this command to migrate the tables I’ve been experiencing this error I’ve tried searching to see if someone has the same problem as me, but there seem to be no similar problems. I also can’t tell if the migrations went through or …
Best way or practice to assign values to array and then encode it to json in symfony
So currently I have this code: And i’m getting this json response: But I would like to get rid of id and weather from the json. Decoding and then encoding again seems like a bad way to do it. Can I access needed values before serializing them to json? I would like to get something like this: Sorry if it…
CRUD table with Ajax + Datatables does not work
I’m creating a CRUD table with Ajax + Datatables, but for any reason, my code does not work. I can get my json response with my data from my database, but I don’t know why, it can’t be printed on my table. Im using 2 files: 1.- main.php: 2.- crud.php: Just to clarify some things … I…