laravel5.6中jquery+ajax分页
摘要:public function shows(Request $request){ $p=$request->get("page"); $page=empty($p)?1:$p; $count=DB::table("shop")->count(); $length = 4; $num_page = ceil($coun...
阅读全文
posted @
2019-04-25 10:12
英勇博客
阅读(426)
推荐(0)
sql语句应用
摘要:laravel5.6框架中用到的sql语句 sql源生语句
阅读全文
posted @
2019-04-25 09:12
英勇博客
阅读(164)
推荐(0)
laravel框架memcached的使用
摘要:在laravel配置及使用使用 Memcached 缓存要求安装了Memcached PECL 包,即 PHP Memcached 扩展。你可以在配置文件 config/cache.php 中列出所有 Memcached 服务器:'memcached' => [ [ 'host' => '127.0
阅读全文
posted @
2019-04-11 09:59
英勇博客
阅读(1212)
推荐(0)
laravel5.6上传图片
摘要:第一种:修改config里边的filesystems.php文件,在disks中加入下列代码 接受文件: file中是上传的文件名称,store中是文件要存放的文件夹。 第二种:在disks中加入下列代码 接受上传文件:
阅读全文
posted @
2019-04-10 20:48
英勇博客
阅读(188)
推荐(0)
laravel5.6框架中session的使用
摘要:从session中获取数据 冲session中获取所有数据 判断session中是否存在指定项 在session中存储数据 获取并删除数据 从session中删除数据项,forget删除指定数据,flush删除所有 其他session问题:https://blog.csdn.net/woshihai
阅读全文
posted @
2019-04-02 20:17
英勇博客
阅读(602)
推荐(0)
laravel5.6中Session store not set on request问题如何解决
摘要:先找到文件app下的Kernel.php文件,在文件中加入下列代码 https://www.cnblogs.com/-lin/p/7767620.html
阅读全文
posted @
2019-04-02 18:47
英勇博客
阅读(169)
推荐(0)