Error Message: “The GET method is not supported for this route. Supported methods: POST”

when i access to endpoint this http://localhost/newsapp_api/public/api/register,this message is showed “The GET method is not supported for this route. Supported methods: POST”. look to the …

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 &...

How to display the first image name from a string of image names

This is my array. I want to print the first image name from the key [image_names] [prop] => Array ( [0] => Array ( [id] => 1 …

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 …

how to update a checkbox value on update function on request based?

i written a very simple code to update value of checkbox but it update 1 in db on uncheck it doesnot update 0 if request is submit here is code

<label&…

get correct data from array

i am trying to decode array. this is my array array:4 [▼ “_token” => “tgPAddbrf3hI5tBIQIGyFYe9Y5RpwCj3rpZG5uVf” “resident_id” => array:4 [▼ 117 => “…

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 …