参考前面的文章:Laravel7.x使用ElementUI
明明环境都搭建好了,也能正常使用Element-UI的组件了,今天在学习Element-UI的一个Demo竟然出现错误找不到Vue对象,真是奇了怪;
(index):77 Uncaught ReferenceError: Vue is not defined
官方教程: https://codepen.io/pen/?&editable=true=h
默认使用vue uicomposer require laravel/ui
php artisan ui vue --auth
php artisan migrate安装ElementUInpm i element-ui -S
npm install babel-plugin-component -D更新缓存npm install
npm&
在Laravel工程上执行以下命令
Updating dependencies (including require-dev)
然后会一直卡在这里不动。。。
解决方法:
原因1:启用了xdebug调试功能,需要把它关闭后就可以了。
参考: https://blog.csdn.net/missagiking/articl
在Laravel原有工程上执行以下命令php artisan ui vue --auth出现错误: Command "ui" is not defined.解决方法:composer require laravel/ui
php artisan ui vue --auth
php artisan&nbs
Laravel实现微信第三方登陆功能,可以使用以下开源软件包,网上很多人都在使用:地址:https://packagist.org/packages/overtrue/laravel-wechat
在Laravel做测试时,只需要在目录内执行以下命令就可以完成所有的测试:www-data@ec081d33fd24:~/laravel$ php artisan test
PASS Tests\Unit\ExampleTest
✓ basic test
PASS Tests\Feature\Examp
一般我们在本机安装php运行环境,配置起来调试没有什么问题,但Docker虽说移植性强,但对于开发者来说有时也很不方便,在此记录一下;重点是docker中的php配置:方式1:使用docker作为调试服务器(一般用于开发端电脑不固定时)# zend_extension=xdebug.so
zend_extension=/usr/lib/php/20180731/xdebug.so
xdebug.remote_autostart=1
xdebug.remote_enable=1
使用composer安装软件包实在太慢了,网上一搜,很多都是说改什么配置文件,但一般改了还不生效,一连的错误,估计是教程太老了或者不兼容;还是看官方,其实就是以下一条命令的事;composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/测试效果:composer global require laravel/instal
一时忘记了zblog的数据库配置文件路径,特意记录一下;路径:zb_users/c_option.php内容:<?php
return array (
'ZC_CLOSE_WHOLE_SITE' => false,
'ZC_DATABASE_TYPE' => 'pdo_mysql',
'
PHP中开发时,使用DOMDocument类出错:$dom = new DOMDocument();
$status = $dom->loadHtml('<?xml encoding="UTF-8">' . $html);错误:(2)E_WARNING : DOMDocument::loadHTML(): Tag cont