摘要: 1.下载安装包 http://datatables.club/ 下载好的包 下载第一个,解压,把解压好的文件放入public目录下 视图层中 <div class="formControls col-xs-4 col-sm-5"> <input type="hidden" class="input- 阅读全文
posted @ 2020-10-30 16:08 满眼都是她 阅读(311) 评论(0) 推荐(0)
摘要: 导入: header("content-type:text/html;charset=utf-8"); $dataa = DB::table('users')->get(); $data = json_decode(json_encode($dataa),true); //转为json数组 $str 阅读全文
posted @ 2020-10-30 00:11 满眼都是她 阅读(178) 评论(0) 推荐(1)
摘要: 视图层: <form method="get"> <input type="text" class="input-text" style="width:250px" placeholder="输入角色名称" value="{{$name}}" name="name"> <button type="s 阅读全文
posted @ 2020-10-30 00:07 满眼都是她 阅读(614) 评论(0) 推荐(0)
摘要: 模型层使用软删除: //开启软删除 use SoftDeletes; protected $dates = ['deleted_at']; 判断软删除字段是否为空 如果是真的 则还原 反之则删除 @if(软删除字段!=null) <a href="{{route('跳转的路由',还原的id)}}" 阅读全文
posted @ 2020-10-30 00:04 满眼都是她 阅读(242) 评论(0) 推荐(0)