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 …

get value 1 – 2 – 1 – 2 – 1 in for loop php

I am trying to get value like 1-2-1-2-1-2 from for loop I tried code like this $c = count($response[‘video’]); // 2 $currentPage = 2; $k = 1; for ($i=$k; $i <= $currentPage ; $i++) { $b = $i &...

Laravel, only first element of array passed to route is readable

From a blade template I want to pass an array with a variable amount of values to a route, as described in the answer here. However when I do this I can only ever access the first value in the array I …

Attach images to product variants when creating a new product Laravel

i’m having difficulty attaching images to variants when creating new products. for example a product A with variant A1 color blue size small images img1, img2 variant A2 color blue size medium image …

How to make URL from Laravel routes

I’ve got Laravel backend and I’m trying to make iOS to it, but there is no documentation. It is my first time with Laravel, so confused with the routes and middlewares. How do I compose URL from code …

DB:Raw not working for date format in postgres

I have the well executed postgres query.I have tried to convert this in laravel but query not executed select id, month, meeting_start_date, call_start_date from mgl_report_targets …

Laravel Middleware not executing functions

I have this Locale middleware which sets language based from settings on DB public function handle($request, Closure $next) { $HQ = Branch::where(‘is_hq’, 1)->where(‘is_active’, 1)-&…

Directory issue in laravel

As I am leaning laravel I am facing directory issues. I have made a navbar in which a create option is given to access the create file which is located in my resources/views/posts/create directory. …

Replace ‘0’ with 1 in phone numbers Laravel

I’m trying to replace users phone numbers to start with 1 instead of 0 but I’m stuck. I have this line $mobileNumber = implode(‘,’, $postData[‘phone’]); which outputs “0445329500,0569075729,…

Laravel count Support Tickets from a user [closed]

I have this in the Dashboard Screenshot of the Dashboard I want that it shows how many Tickets are open / closed / all How do I do this with this Database?Screenshot from SELECT * FROM tickets How …