路由 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
路由 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