2017 © Pedro Peláez
 

library restmodel

enable restful routes and services with existing Eloquent Models

image

novatree/restmodel

enable restful routes and services with existing Eloquent Models

  • Saturday, March 25, 2017
  • by novatree
  • Repository
  • 1 Watchers
  • 3 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 6 % Grown

The README.md

Laravel-RestModel

N|Solid, (*1)

What is RestModel ? It is a laravel based package that can expose api for any model provided. Its easy !, (*2)

Functionality

  • this packages extends your models CRUD based functionality.
  • it provides you restful functionality with your existing methods without righting single line of code.
  • e.g. if you have a User model then,
    • you can get all results by accessing this url [your-project-name]/User (GET)
      • you can get a particular record by accessing this url [your-project-name]/User/id (GET)
      • you can create a record with providing all necessary model attributes hitting url [your-project-name]/User (POST)
      • you can update a record passing id and all necessary model attributes hitting url [your-project-name]/User/id (PUT)
      • you can delete a record passing id hitting url [your-project-name]/User/id (DELETE)

Installation

  • to install the package please type the command composer require novatree/restmodel from console in your laravel project directory .Then follow the steps bellow ....
  • go to your laravel application root directory.
  • there is a file with the YourLaravelProject\Config\app.php.
  • in this file there is an array of contents called providers.
  • paste Novatree\Rest\RestProvider::class in YourLaravelProject\config\app.php file providers array.
  • now from your console type composer dump-autoload or composer dump-autoload -o for autloading composer vendor and classes.
  • its all set .
  • If you faced any problem regarding this package feel free to mail me
    • tejomay@novatree.com/tejomaysaha@outlook.com

The Versions

25/03 2017

dev-master

9999999-dev

enable restful routes and services with existing Eloquent Models

  Sources   Download

MIT

The Requires

 

by Avatar tejomayonline
by Monojit Halder
by Prakash Bharti

laravel rest rest service rest api laravel laravel rest service

25/03 2017

1.1.0

1.1.0.0

enable restful routes and services with existing Eloquent Models

  Sources   Download

MIT

The Requires

 

by Avatar tejomayonline
by Monojit Halder
by Prakash Bharti

laravel rest rest service rest api laravel laravel rest service

17/03 2017

1.0.0

1.0.0.0

  Sources   Download

MIT

by Avatar tejomayonline