09 2017 档案

摘要:自定义 public function index(Request $request) { $list = DB::table('auth_group')->where('status','!=','-1')->get()->toArray(); //dd($list); $perPage = 3; 阅读全文
posted @ 2017-09-28 09:43 zhangsima 阅读(214) 评论(0) 推荐(0)
摘要:laravel5.5 1、laravel 查询数据库默认返回对象,如何改成 返回值为数组 答:在 App\Providers\EventServiceProvider 文件中 第一步: use Illuminate\Database\Events\StatementPrepared; 第二步: // 阅读全文
posted @ 2017-09-23 09:59 zhangsima 阅读(129) 评论(0) 推荐(0)
摘要:<script> $(document).ready(function(e) { var counter = 0; if (window.history && window.history.pushState) { $(window).on('popstate', function () { win 阅读全文
posted @ 2017-09-18 10:02 zhangsima 阅读(2386) 评论(0) 推荐(0)
摘要:// 时间为当前是日期 $date = strtotime(date('Y-m-d',time())); //dd($date); //UNIX_TIMESTAMP('2006-11-04 12:23:00'); $where = "DATE_FORMAT(FROM_UNIXTIME(create_ 阅读全文
posted @ 2017-09-02 10:23 zhangsima 阅读(183) 评论(0) 推荐(0)
摘要://json 强制转换为array $arr[$key]['checkpro'] = json_decode($val['checkpro'],JSON_FORCE_ARRAY); $arr[$key]['messpro'] = json_decode($val['messpro'],JSON_FO 阅读全文
posted @ 2017-09-02 09:36 zhangsima 阅读(232) 评论(0) 推荐(0)