2017 © Pedro Peláez
 

library apigenerate

Easy api generate for the Laravel Framework.

image

phfoxer/apigenerate

Easy api generate for the Laravel Framework.

  • Tuesday, July 24, 2018
  • by phfoxer
  • Repository
  • 1 Watchers
  • 6 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

phfoxer/apigenerate

API Rest generator for Laravel Framework. Create your api resource in seconds using only your database table name or connection name., (*1)

Installation

composer require phfoxer/apigenerate

Install the service provider:, (*2)

// config/app.php
'providers' => [
    ...
    Phfoxer\ApiGenerate\ApiGenerateServiceProvider::class,
    ...
];

Usage

Creating a new resource

To create all API Rest resources run this command (Only postgres and mysql):, (*3)

php artisan generate:api --con=conection_name

To create a new api resource run this command:, (*4)

php artisan generate:api --table=table_name --relation=true

You can see result in http://localhost:8000/api/table_name You can find your new resource in app/RestAPI. General is the default, (*5)

Params

To define route:, (*6)

php artisan generate:api --table=table_name --route=my-custom-route --relation=true

To define module name:, (*7)

php artisan generate:api --table=table_name --route=my-custom-route --relation=true

You can find your new resource in app/RestAPI/Exemple., (*8)

Postcardware

You are free to use this package as it's MIT-licensed, (*9)

The Versions

24/07 2018

dev-master

9999999-dev http://github.com/phfoxer/apigenerate

Easy api generate for the Laravel Framework.

  Sources   Download

MIT

The Requires

 

by Avatar Paulo Santos

laravel api console artisan gerator generate api