julianobailao/laravel-easy-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

julianobailao/laravel-easy-api

Composer 安装命令:

composer require julianobailao/laravel-easy-api

包简介

Laravel Easy Api Helper.

README 文档

README

Latest Version on Packagist Software License Build Status StyleCI Coverage Status Quality Score Total Downloads Donate

This package will helps you build as quickly as possible your APIs, using pre-configured traits and resource controllers, see the wiki for more information.

Install

Via Composer

$ composer require julianobailao/laravel-easy-api

Documentation

Please, see the wiki for the full documentation of this project.

Basic Usage

Create a Model:

Create a model and configure it has you wish.

namespace App;

use Illuminate\Database\Eloquent\Model;

class Donkey extends Model
{
  //
}

Create a controller

Create a controller, and use the ResourceTrait of this package. Exists one trait for each method from resource controller equivalent, if you want use a especific methods, and not all of then, read about Independent Methods.

namespace App\Http\Controllers;

use JulianoBailao\LaravelEasyApi\ResourceTrait;

class DonkeyController extends Controller
{
  use ResourceTrait;
}

Route

Configure your route like a resource controller:

Route::resource('donkeys', 'DonkeyController', ['except' => ['create', 'edit']]);

It's runing!

You have a resource controller with the index, show, store, update and destroy methods, runing for model Donkey, in the /donkeys route.

Please, see the wiki for the full documentation of this project.

License

The MIT License (MIT). Please see License File for more information.

Donate

Support this project and others, via PayPal.

Donate

统计信息

  • 总下载量: 69
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 13
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 13
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固