![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
laravel
cnoneo
mosousuo@foxmail.com
展开
-
laravel 6 redis 报错 Please remove or rename the Redis facade alias in your "app"
错误提示已经安装 redis ,phpinfo 上也有,将 config/app.php 文件的 aliases 的 Redis 也已经注释掉了,路由也清理过了,出现以下错误local.ERROR: Please remove or rename the Redis facade alias in your “app” configuration file in order to avoid...原创 2020-01-02 10:10:43 · 3095 阅读 · 2 评论 -
laravel php 代码内执行 artisan
\Artisan::call('artisan命令');原创 2019-12-23 19:27:09 · 1218 阅读 · 1 评论 -
laravel curl模拟http进行get和post请求
$url = "oauth/connect/token";try { $http = new \GuzzleHttp\Client; $response = $http->post($url, ['form_params' => ['grant_type' => $grant_type, 'client_id' => $client_id, 'client...原创 2019-12-23 12:17:20 · 5110 阅读 · 0 评论 -
php模拟get post禁止重定向
此处可以直接返回 不会自动重定向到其他页面curl_setopt($ch, CURLOPT_AUTOREFERER, false);–mosou原创 2019-11-10 10:06:43 · 1383 阅读 · 0 评论 -
laravel artisan admin:install 创建数据表的时候出现767
创建索引的时候报错 :Index column size too large. The maximum column size is 767 bytes.改数据库文件default_storage_engine = InnoDBinnodb_large_prefix=oninnodb_file_format = BARRACUDAalter table `表名` row_forma...原创 2019-10-29 13:42:16 · 236 阅读 · 0 评论 -
Docker容器的使用详细命令教程
Docker容器详细命令使用教程什么是Docker?一个开源的应用容器引擎,Docker 可以让开发者打包他们的应用以及依赖包到一个轻量级,可移植的容器中,然后发布到Linux上,实现虚拟化Ubuntu下安装wget -qO- https://get.docker.com/ | sh当要以非root用户可以直接运行docker时,需要执行\sudo usermod -aG do...原创 2019-10-28 22:54:12 · 398 阅读 · 0 评论 -
Laravel 安装workerman 报错 'Class App\Console\Kernel does not exist'
安装workerman 报错Class App\Console\Kernel does not exist1、起因:安装workerman 出现的错误2、解决确定你的引导程序没问题bootstrap/app.php 在项目根目录执行命令 (推荐)composer dump-autoload(一定要在项目的根目录下执行)。执行后,再访问就好了。...原创 2019-10-16 10:33:39 · 601 阅读 · 0 评论 -
laravel 的多对多一对多多对一模型关联中with,has,wherehas
####使用with时 with()方法是用作“渴求式加载”的,那主要意味着,laravel将会伴随着主要模型预加载出确切的的关联关系。这就对那些如果你想加在一个模型的所有关联关系非常有帮助。因为“渴求式加载”缓解了1+N的查询问题,仅需1+1次查询就能解决问题,对查询速度有了质的提升。支持过滤条件$groupInfo = $this->class::where('site_id',$id...原创 2019-08-12 15:18:49 · 4065 阅读 · 0 评论 -
laravel Debugbar 安装调试和api配置
1、 安装Debugbara) composer require barryvdh/laravel-debugbar2、 安装Flasha) composer require laracasts/flash3、 安装Dingo/apia) composer require dingo/api:1.0.X@dev4、 config/app.php里的p...原创 2019-04-12 16:41:09 · 1322 阅读 · 0 评论