How to name a policy for multimodel route in Laravel?

I’m trying to write a policy for this route: Route::delete( ‘users/{user}/locations/{location}’, [UserLocationController::class, ‘destroy’], )->middleware(‘can:delete,user,location’); but …

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 …

Slim Php not recognizing gets

I am just starting to work with Slim PHP. What could be the reason that get is not recognized on server? This route works: it returns required text https://mywebsite/back/public This route doesn’t …

only use api/array data that meets a specific criteria

I have some api data, that is structured as follows information random number price amount total random number price amount total data i use atm to grab the …

Laravel app interacting with a 3rd party API to get a token

I have one Laravel app with a GUI where the user logs in based on the data from a MySQL database. When the user logs in, the server needs to make a request to a specific endpoint of a 3rd party API in …

laravel 7 keeps adding ‘/public/’ to my api routes

I am trying to make a php curl request to my laravel api Here’s the curl function function CallAPI($method, $url, $data = false) { $curl = curl_init(); switch ($method) { case &…

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 …

Get php input values

My goal is to have a WordPress form that when posting, send the input to an API into an ERP. Right now it seems that the values are empty when sending the way I do. In CURLOPT_POSTFIELDS if instead of …

Listing buckets in cloud storage project using PHP API

I’m trying to list out all (some, even) of the buckets in my storage project. If I know the name of a bucket, the “bucket” function will get the bucket. But I can’t use “buckets” …

PHP cURL GET Request to REST API not returning anything

I’m trying to use the UMLS Search REST API. I successfully retrieved the TGT and The ST. However, when trying to do a search as mentioned in the documentations, I got no response at all. Here’s my …