laravel中可以用命令行php artisan serve 启动web server,并通过localhost:8000访问项目。 但是因为开发环境为虚拟机部署项目,然后通过端口访问,所以开启服务之后无法远程访问。 网上相关说明比较少,通过查看laravel配置发现 php artisan se ...
分类:
Web程序 时间:
2020-01-15 19:53:47
阅读次数:
113
echart https://www.echartsjs.com/examples/zh/index.html highcharts https://www.highcharts.com.cn/ chartjs https://www.chartjs.org/ https://github.com/ ...
分类:
Web程序 时间:
2020-01-15 19:37:41
阅读次数:
92
Laravel 5.4默认使用utf8mb4字符编码,而不是之前的utf8编码。因此运行php artisan migrate 会出现如下错误: [Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access ...
分类:
其他好文 时间:
2020-01-15 19:34:57
阅读次数:
71
querylist真的挺好用的!!!感谢!!!参考链接:https://learnku.com/laravel/t/6262/querylist-4-concise-and-elegant-php-collection-tool (querylist文档打不开,不知道什么原因,ping不通域名了都, ...
分类:
其他好文 时间:
2020-01-14 16:11:20
阅读次数:
180
laravel 项目 进入项目的根目录执行一下命令 有两种方式 一种cmd 中的 进入指定项目的根目录执行命令 第二种 bash 就是git管理工具中的直接进入指定目录 然后进入 执行清除命令 php artisan cache:clear 清除原来的缓存 然后更新钩子数据到缓存中去 php art ...
分类:
其他好文 时间:
2020-01-14 11:28:46
阅读次数:
170
if(!session('name')){ return redirect('book')->withErrors('请登录'); } 首先在后台使用withErrors放回错误信息 前台页面通过全局函数$errors接收错误信息,通过循环在页面展示 @foreach($errors->all() ...
分类:
其他好文 时间:
2020-01-13 20:03:11
阅读次数:
92
在按照文档执行php artisan migrate时报错。 SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: a ...
分类:
数据库 时间:
2020-01-12 11:42:14
阅读次数:
109
面对这个问题有些无语,laravel报错的错误很抽象。百度基本这些答案:删除 laravel 配置,重新生成配置。 php artisan clear-compiled php artisan optimize 或者 composer dump-autoload --optimize 当然上面的方案 ...
分类:
其他好文 时间:
2020-01-12 00:21:17
阅读次数:
83
1、配置.env 文件 DB_CONNECTION=mysqlDB_HOST=127.0.0.1DB_PORT=3306DB_DATABASE=yhadminDB_USERNAME=rootDB_PASSWORD=rootDB_HOST_CENTER=127.0.0.1DB_PORT_CENTER= ...
分类:
数据库 时间:
2020-01-10 14:07:55
阅读次数:
244