摘要:
一、创建编辑页面 1,编辑 App\Http\Controllers\Controller\UserController.php 的 edit() 方法 public function edit(int $id){//$id是接收到的ID $user = User::find($id);//通过ID 阅读全文
posted @ 2020-05-17 13:57
pensive2019
阅读(173)
评论(0)
推荐(0)
摘要:
1,在命令行 新建 App\Http\Requests\UserRequest.php 用户表单检验文件 php artisan make:request UserRequest 2,编辑上一步生成的 UserRequest.php 如下 <?php namespace App\Http\Reque 阅读全文
posted @ 2020-05-17 01:19
pensive2019
阅读(221)
评论(0)
推荐(0)

浙公网安备 33010602011771号