记不住的东西

1、sublime 另存为 ALT+F 再按A

2、空值   |default=''

3、两个时间戳    手册位置:模型——自动时间戳

create_time 添加时间
update_time修改时间

4、from表单提交 提交地址,注意是get还是post,这个很重要!!!Route::post('admin/login/check','admin/login/check'); 

<form class="well" action="{:url('admin/login/check')}" method="post">

  总结前后台交互,首先得有提交按钮或者表单,如上面,其次建立一个路由,最后,在控制器里面写出方法。

 

猜你喜欢

转载自www.cnblogs.com/uncle-guo/p/9990844.html
今日推荐