hello guys i have a problem with my ajax data json, i have a project about scan a barcode with a webcam but it just views the code of the barcode, the data in the database not call in my ajax, this is the code of blade, i’m using a modal this is the modal this is the jquery code
Tag: laravel
laravel feature tests with locales
I am new to Laravel and I am having an issue to write a test function that asserts that the HTTP response of my welcome page is 200 knowing that I have EN and FR locales defined, meaning that the test should test both localhost:8000/en and localhost:8000/fr. This is my exampletest.php: I don’t like writing the code twice for both
How to setup/access page in subdirectory of separate project for a Laravel/OctoberCMS website?
I have a website running an OctoberCMS theme that I built. It’s running on a server from DigitalOcean. I need to add a separate project (namely code from Matomo analytics) on the same server and access a public page (e.g. my_site.com/matomo). I’m new enough to Laravel and server configurations that I’m unsure of how I need to configure the index.php
Larave conditional aggregation to get multiple sum of amount
Hope all is well. Anyone can tell me how can I get to run this SQL query in a the right way in Laravel? Controller: $data=DB::raw(“SELECT name as ‘name’ FROM invoices WHERE country=’$country’…
How to print infinity nested categories in dropdown (select) menu in Laravel
I have this category table: id name parent_id 1 Programming 0 2 History 0 3 PHP 1 4 Javascript 1 6 World history 2 7 jQuery 4 8 AJAX 4 9 Europe 6 10 American 6 16 ajax nested 8 Here is how I get categories in controller: And Model Category: I want to output categories, like this: Which looks
Laravel only one friend_id per user
I’m only starting with laravel and was wondering if anyone could help, I’ve created a friend_id and user_id from the database and have made a form in the view that adds the user_id to the friend_id (not sure what the terminology is for anything yet XD) everything working fine but each time I press the add friend button the friend
How to update cart item quantitty with ajax in laravel?
I want to increment/decrement cart quantity by clicking the button. See this image preview image This cart row is shown by forcach loop. First row is working perfectly. The problem is, when I click on the seceond/last row, I get only first row value. I don’t know how to solve that. Here is view code Here is ajax code Here
How to get Position of Comment within a Post
So I have a Post which has Comments — I’m trying to get the Comment # position within that post. For example, a Post has 15 comments, I want to be able to get the numerical position (i.e 1 (first post), 2 (second post), 3 (third post), etc, etc), and put this into a function somehow. That way when I
Why Laravel 7 Generates Views in /storage/framework/views/, and how to stop creating them?
Laravel keeps generating views simultaneously with the views I am editing. Answer You can do that but for that you have to edit Laravel’s core files, it is not advisable. You can delete the views generated in storage folder by using following artisan command.
PhpSpreadsheet Reader Exception Failed to load /root_dir/public/laravel-excel-fLRGTlw9uEE2XRz0k1fXdcg2wfs2RWy7.html as a DOM Document
I have tried everything for resolving this issue but nothing worked. php artisan cache:clear php artisan view:clear php artisan route:clear php artisan config:clear Also Updated my Dependencies …