This variables are working perfectly, I wonder why are they with a red underline. Anyone knows how to correct this? Error msg Answer Since VSCode doesn’t ship intellisense for [blade] template files in default, we need to install extra extensions for correct grammar checking and snippets support for .blade.php files. Here are some of them onecentlin.laravel-blade * works best for
Tag: javascript
Websockets file upload is corrupted (or wrongly encoded) – PHP and JS
I´m working on websocket scripts in PHP and JS and have issue with saving a file (img) Sending from JS: Saving in PHP It saves the file, but it is corrupted, or wrongly encoded… The uploaded picture is slightly smaller (few bytes) and there is nothing readable in hexeditor (while in original I can read header and so on) What
Deleted images still being shown
For some reason, my website still showing images that were already deleted from the specified folder and I have no idea why that’s happening and how to solve that. Process: When the button to delete all admins is pressed, it calls a PHP function that truncate the tables administration, adminimg and login, delete all images from a folder related to
How to loop through div per div
Horrible title aside, I currently have a dynamic form that has tasks, and per tasks, statuses. The amount of tasks and status can vary. What I’m trying to do is submit the task name, status name, and colors tied to that status. I’m submitting the form via js and the only different thing is creating an array from the colors.
Sending an otp to the input mobile number and verifying it, in my html page
I want my html page to send an OTP to the mobile number given in the input text, when I press Send OTP button. And upon giving the OTP as input I want my webpage to verify whether it’s the same OTP that was sent to the mobile. How do I achieve this? This is my html code: Answer There’s
Laravel update all users age by x
I want to update all users in my database with an age value which I get from my request. How do I manage this? I somehow need the current value in the db and multiple it. Answer Let’s assume that the name of the field in your $request is multiple, you can iterate over your customer records and update each
Second Graph is not showing up chart.js, mysql in php
I can’t figure out why my second graph isn’t showing on web? I am using chart.js and querying data from mysql, and graphing it. I have two functions drawChat1 and drawChart2. drawChart1 is working fine and showing graph but no data is showing for drawChart2. I left a picture for reference. UPDATE: it is the id’s. I tried rearrange the
How to hide/not display PDF title in the toolbar
Is there any way to access metadata of PDF file I embedded using pdfobject.js? I would like to replace/change its title because it’s not corresponding to its filename. example is the snip below. filename of that is ‘D1000SPN.pdf’ which is different from the title displaying. I tried to search but found none. However, since I can’t find a solution to
Sanitizing whitespace in generated URL parameters
I’m having an issue with a PHP page that generates an HTML document. On the page, there is a form that has a <select> box, and each <option> inside has a value with the URL parameters to use when changing the window location when the form is “submitted”. The issue is that I noticed is that one of the parameters
Route exists but doesn’t work and deleted route still works Laravel
Well, I was working on my project and suddenly when I created a new route I get this problem where the route exists but it shows 404 !! so I tried to delete an existing route that is working but when I delete that route still works !! I had this problem previously but I just deleted that route and