larave 流水账笔记

路由 web.php api.php 设置自己的路由规则

api.php

设置自己的路由规则

建立自己的控制器 php artisan make:controller Test

建立自己的模型 php artisan make:model Users

查询构造查询 Db::(table)->

orm

Usser::with('phone')->select(['name'])->

->toArray

->toJson

猜你喜欢

转载自blog.csdn.net/Lucky____Boy/article/details/84324687