Skip to content

OMGZui/SDK-Laravel5.5

Repository files navigation

SDK-Laravel5.5

老哥,干嘛的啊

一个laravel初始库

老哥,怎么用啊

git clone https://github.com/OMGZui/SDK-Laravel5.5.git
composer install
cp .env.example .env
chown -R 775 storage
php artisan storage:link
php artisan key:generate
php artisan migrate --seed
phpunit

老哥,有什么啊

  • 事件Events
  • 监听者Listeners
  • 策略Policies
  • 任务队列Jobs
  • 资源Resources
  • 异常Exceptions
  • 控制器Controllers
  • 中间件Middleware
  • 请求Requests
  • 邮件Mails
  • 模型Models
  • 数据迁移Migrations
  • 模型工厂Factories
  • 数据填充Seeds
  • 通知Notifications
  • 服务提供者Providers
  • 仓库Repositories
  • 支持Supports
  • 工具Tools
  • 转化Transforms
  • 测试Tests
  • 规则Rules
  • 路由Routes
  • 配置Configs
  • 扩展Packages

小知识

# 增删改查,改这里PUT|PATCH,使用postman时Headers记得加上Content-Type:application/x-www-form-urlencoded

| GET|HEAD  | api/apply          | apply.index      | App\Http\Controllers\Api\ApplyController@index   |
| POST      | api/apply          | apply.store      | App\Http\Controllers\Api\ApplyController@store   |
| GET|HEAD  | api/apply/{apply}  | apply.show       | App\Http\Controllers\Api\ApplyController@show    |
| PUT|PATCH | api/apply/{apply}  | apply.update     | App\Http\Controllers\Api\ApplyController@update  |
| DELETE    | api/apply/{apply}  | apply.destroy    | App\Http\Controllers\Api\ApplyController@destroy |

抄袭哪里的啊

jcc/blog