PHP 中 this,self,parent 的区别
this,self,parent三个关键字从字面上来理解,分别是指这、自己、父亲。先初步解释一下,this是指向当前对象的指针,self是指向当前类的指针,parent是指向父类的指针。1.thi...
PHP2017-06-11php class中public,private,protected的区别以及实例分析
一、public,private,protected,Static的区别。public表示全局,类内部外部子类都可以访问;private表示私有的,只有本类内部可以使用;protected表示受保护...
PHP2017-06-11git add -A和git add .和git add -u的区别
#git· gitadd-A 提交所有变化· gitadd-u 提交被修改(modified)和被删除(deleted)文件,不包括新文件(n...
其他2017-06-01The host path of the shared folder is missing:
vagrantup时出现 Thehostpathofthesharedfolderismissing:说明Homestead.yaml文件配置错误,仔细检查一下,看看是不是...
其他2017-05-27atom添加右键打开文件菜单
#Atomatom在文件上右键打开文件的功能是自带的,只是需要配置一下,配置方法如下:file->settings->system->如图...
其他2017-05-06解决:git pull怎样解决冲突,合并冲突文件
#git使用gitpull代码时,经常会碰到有冲突的情况,提示如下信息:error: Your local changes to 'c/enviro...
其他2017-04-19解决:composer 报 zlib_decode() data error
#composer方法一:使用composer安装lumen项目,执行composercreate-projectlaravel/lumen--prefer-dist,命令报 [ErrorExcep...
其他2017-04-19Laravel执行php artisan migrate时Nothing to migrate
#数据库#数据表我出现这种报错的情况这样的,我新建了一个migration,成功执行了php artisanmigrate,但是后来发现有问题,删除了数据表重新运行phpartisanmigrate...
Laravel2017-04-17Laravel执行php artisan make:migration时报错failed to open stream: No such file or directory
laravel执行生成迁移时报错:[ErrorException] include(D:\wnmp\www\laravel-5-3-dev\vendor\compos...
Laravel2017-04-16MassAssignmentException in Model.php line 452: name
laravel使用EloquentORM的create插入数据时出现报错,且报错信息只是一个字段的名字。MassAssignmentException in Model.php...
Laravel2017-04-04