Paginating with laravel collection in api

I got problem in Laravel Api collection paginate. I have categories and I need to bring all products that belongs to a single category My code: public function show($id) { $category = Category:…

How to pass multiple array in response – Laravel API

I am creating my API for mobile app in Laravel. I am facing an issue where I have to pass two arrays as json but it shows error. Here is the code which I am using public function showSearchPage($…

How to get specific data from a complicated json via PHP

I have this JSON output: Array ( [info] => Array ( [statuscode] => 0 [copyright] => Array ( [text] => © 2020 MapQuest, Inc. [imageUrl] => http://api.mqcdn.com/res/mqlogo.gif […

Angular: Material Autocomplete populated with api data returns JSON value

I am new to angular and am working on a small ledger application. In it, the user has to select customer from a material autocomplete field which is populated with data from an API. Like so: PHP Back-…

Get response variables from array

I am trying to output all the users I have created in my Marqeta API Sandbox environment. I’m making a GET request to /users through my custom marqetaAPI function that handles each request type. Call …

Opening multiple urls with CURL – Using api with CURL – too many urls and too slow

I have a software. There is a table, there are URLs in this table. There are 100 URLs on each page. picture Then I got an API where I can pull Alexa and DA Values. I wanted to show these values ​​…

can i add new key in models?

I want to add a key while I’m getting any response of an API using Models in laravel, Currently, I’m developing an API to get a response with a new one key to add to dynamically.

Dropbox api limitations

Is it possible to use dropbox api to show directly to my webpage the content of a folder which is on my dropbox account and to allow dropbox users to add content to it (directly from my website too) …

API requests with axios always unauthorized with Laravel API

I’m working on a personal project using Laravel 5.6 and Axios library (standard Laravel 5.6 package). I need to send first GET then POST request using Laravel’s API and axios’ http requests, but I’m …

Ionic 3 Uncaught (in promise): [object Object]

I am new to Ionic 3 and mobile development. I am trying to connect a MySQL DB to my Ionic app and a PHP Restful API. I tested the API with Postman and it is working just fine, in order to implement it …