随笔分类 -  laravel

laravel5.x 出现 HTTP ERROR 500解决
摘要:https://www.form1.cn/php-lavaver-222.html 阅读全文
posted @ 2018-10-08 18:23 张扬个性,敢为天下先 阅读(1079) 评论(0) 推荐(0)
Laravel 添加路由文件
摘要:在laravel 5.4中的routes文件夹里面默认有两个路由文件web.php和api.php。 新建路由文件 我们在routes文件夹下多创建一个admin.php文件作为管理后台的路由 修改RouteServiceProvider.php 阅读全文
posted @ 2018-08-25 15:59 张扬个性,敢为天下先 阅读(3411) 评论(0) 推荐(0)
laravel 在linux环境下解决.htaccess无效和去除index.php
摘要:LoadModule rewrite_module modules/mod_rewrite.so (去掉前面的#注释) AllowOverride All (根目录的配置下,确保设置成All) <Directory /> AllowOverride all Require all granted</ 阅读全文
posted @ 2018-03-05 15:41 张扬个性,敢为天下先 阅读(327) 评论(0) 推荐(0)
laravel 5 : Class 'input' not found
摘要:在配置文件中:config\app.php 加上 阅读全文
posted @ 2018-02-23 13:44 张扬个性,敢为天下先 阅读(469) 评论(0) 推荐(0)
session一直报错Session store not set on request
摘要:Route::group(['middleware' => ['web']], function () { //});仍然报错,看了 session是使用默认file,没问题;app/storage文件也是可写的,然后在 Kernel.php中添加了 protected $middleware = 阅读全文
posted @ 2018-02-10 09:28 张扬个性,敢为天下先 阅读(529) 评论(0) 推荐(0)
模板加载
摘要:1.control调用模板 阅读全文
posted @ 2018-01-18 17:30 张扬个性,敢为天下先 阅读(127) 评论(0) 推荐(0)
操作数据库
摘要://语句传参数 $users = DB::select('select * from hk_admin where id = ?', [$id]); //处理事务 DB::transaction(function () { DB::table('hk_admin')->update(['passwo 阅读全文
posted @ 2018-01-16 17:10 张扬个性,敢为天下先 阅读(149) 评论(0) 推荐(0)
laravel路由
摘要://参数 Route::get('user/{id}', 'UserController@show'); Route::get('store', 'UserController@store'); //可选参数(参数名后加一个 ?)Route::get('user1/{id1?}', function 阅读全文
posted @ 2018-01-16 16:35 张扬个性,敢为天下先 阅读(98) 评论(0) 推荐(0)
最简单安装laravel
摘要:http://laravelacademy.org/resources-download 阅读全文
posted @ 2018-01-15 17:15 张扬个性,敢为天下先 阅读(213) 评论(0) 推荐(0)