laravel查询sql语句
//开启查询日志 \DB::connection()->enableQueryLog(); //执行sql语句 $goods_group = \App\Goods_group::orderBy('sort','desc')->...
//开启查询日志 \DB::connection()->enableQueryLog(); //执行sql语句 $goods_group = \App\Goods_group::orderBy('sort','desc')->...
id pid controller /** * 加载视图 * @return [type] [description] */ public function goods_group() { ...
原始分页真是太难看了,如上 laravel很人性化的给我们提供了样式,在public/css里面有个app.css文件, 我 们只需要再视图引入它就好了 <link rel="stylesheet" href="{{asset('cs...
$goods = Goods::orderBy('created_at','desc')->orderBy('id','desc')->paginate(6);
url public/admin/goods?status=0&page=2 c $status = \Request::get('status'); return view("admin/goods/goods",compact(...
Laravel 出现"RuntimeException inEncrypter.php line 43: The only supported ciphers are AES-128-CBC and AES-256-CBC with the...
无法保存 session(['admin'=>$res[0]]); 可以保存 \Session::put('admin',$res[0]); // 你要保存的session key \Session::save();
var content = $(this).parent().parent().prev().children(".tex").children('textarea').val()
var http = require('http') var url = 'http://www.imooc.com/learn/348' var cheerio = require('cheerio') http.get(url,func...
//url网址解析 // url.parse 将网址解析成对象 > url.parse('https://www.imooc.com/video/6710') > url.parse('https://www.imooc.com...