codeby/laravel-api

RestFul API for Development and Production

dev-master 2021-12-26 03:13 UTC

This package is not auto-updated.

Last update: 2025-07-06 20:06:28 UTC


README

#Part 1. Codeby/Laravel-API

A simple server API helper RestFull GET, PUT, DELETE, POST requests and store it cloud server.

Installation

Install via composer

composer require codeby/laravel-api

Register Service Provider

Note! This and next step are optional if you use laravel>=8.0 with package auto discovery feature.

Add service provider to config/app.php in providers section

Codeby\LaravelApi\APIServiceProvider::class,

Register Facade

Register package facade in config/app.php in aliases section

'LaravelApi' => \Codeby\LaravelApi\LaravelApi::class,

Publish Configuration File

php artisan laravel-api:publish

#Part 2. Setup remote api

Step 1: Register free account at https://api.codeby.com

Step 2: Add new an Api object then submit the form

Step 3: Add new a Resource object then submit the form, with field name is users

Step 4: Add new a Dataset object then submit the form with field name is setup-laravel.dev

Step 5: Choose setup-laravel.dev from Rallydata's list, then click info button to get TOKEN key

Step 6: Import Postman copy Postman Collection and Postman Environment then paste to Import Postman