建立student控制器,控制器代码 namespace App\Http\Controllers; use Illuminate\Support\Facades\DB; class StudentController extends Controller{ //添加 public function addstudent(){ $student = DB::insert('insert into student(name,age,gender) values(?,?,?)',['张三',12,2…