I’m do output with json_encode to sending to javascript, with this code. so output show like this, [{“id”:”121353568″,”name”:”Baju Casual – Black”},{“id”:”556903232″,”name”:”Tas LV – Red”},{“id”:”795953280″,”name”:”Sword – Wood”},{“id”:”834032960″,”name”:”Scooter – Iron Plate”}] and code javascript like this so obj.id its not working, output show undifined. Answer I use ajax calls when I want to call a Php file and get a response from
Route [admin.editcategory] not defined
Hello Everyone I am new in laravel. I just started to watch a series of ecommerce from youtube. In the series at the 15th video , when editing the category i did as same as the youtuber did. But there …
PHP Laravel – Get array of models by search or return empty array
Very new to PHP and Laravel so this is probably a noob question. I know the $sites variable has content in it when I dd($sites); but when it comes to actually returning a value, I get nothing. Any thoughts what I am doing wrong? EDIT: The other function referenced above is here (shouldn’t really need it though). dd($sites) results: Answer
Placing Error Message from PHP to specific place in HTML [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 last year. Improve this question I have created a log in system. My PHP is on a separate script file than my HTML. I want to
adding a hyperlink in a sms email
What I am trying to do is send a registration confirmation sms via email from my website. I have it working now but I want to make sure that people are putting in correct phone numbers and carrier data. When my message sends it will send the word link but its not clickable is there a way to make the
How to stop PHP cron job after 30 minutes from sh file
I’m running a php yii2 cron from cronjob through a sh file every minute, so if previous job doesn’t complete within a minute so it won’t execute more than 1 time. But my problem is that, it got stuck …
I Can’t show my database tables through migration command on powershell terminal (Windows 10)
I tried to run: php artisan migrate Also to connect to MySQL using terminal on Windows. I Got this error: .env file: I tried to change my DB_HOST to “localhost” but it didn’t work. When I want to show databases it shows those; But even if I create tables like these it didn’t see As you see; I even delete
How to hide a div if a value from db matches – Laravel
I want to hide a <div> element if the value is_admin === “0” in table admins. Here is my Controller Code I want to hide this div if is_admin === “0” Answer
PHP Fatal error: require(): Failed opening required lib prestashop
I have installed prestashop api lib in local (xampp) and works great, but when I upload the it to my server, it throws a exception. Log file: autoload_files.php: composer_real.php: composer.json: I supose that laravel doesn´t get correctly the lib but I don´t know how to fix it correctly. Please help, thx. Answer Composer is case sensitive, some letters´ path were
Exception: Function yaml_parse() does not exist
Please has anyone encountered the same problem? I wanted to use the yaml_parse() function of PHP. Basically I wanted to create a big object/class(Parser) that will allow me to parse not only yaml but also json, … etc. So I knew that some of you suggest Symfony/Yaml, etc…, in short I find these libraries too heavy for me, especially the