07 2021 档案

摘要:1、phpstorm>file>setting 搜索xdebug,修改debug port 为一个没有被占用的端口 比如9100 2、打开当前应用使用的 php.ini,设置 remote_enable = on ,xdebug.remote_port=9100 ,保存并重启nginx或apache 阅读全文
posted @ 2021-07-22 10:27 i金少 阅读(749) 评论(0) 推荐(0) 编辑
摘要:创建测试用数据表 CREATE TABLE `book` ( `bid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'book id 自增', `book_name` varchar(100) DEFAULT NULL COMMENT '书名' 阅读全文
posted @ 2021-07-18 22:54 i金少 阅读(104) 评论(0) 推荐(0) 编辑
摘要:以 Routes/web.php 文件为例 Route::get('/', function () { return view('welcome');}); 关于 facade分析比较不错的一篇文章:https://learnku.com/articles/5464/the-facade-imple 阅读全文
posted @ 2021-07-17 10:29 i金少 阅读(21) 评论(0) 推荐(0) 编辑
摘要:1、例子类、对象 class Foo { private $bar = [1,2]; public function go() { echo "walk to school"; } }$foo = new Foo(); 2、利用反射打印方法 $reflector = new \ReflectionC 阅读全文
posted @ 2021-07-17 09:58 i金少 阅读(153) 评论(0) 推荐(0) 编辑
摘要:/* * ArrayAccess :Interface to provide accessing objects as arrays. * 用访问数组的方式访问对象的 */ class Foo implements ArrayAccess { private $container = []; pub 阅读全文
posted @ 2021-07-16 00:14 i金少 阅读(43) 评论(0) 推荐(0) 编辑
摘要:1、创建服务类 Student.php namespace App\Service\School; class Student { protected $TafficTool; function __construct(WayToSchool $foot) { $this->TafficTool = 阅读全文
posted @ 2021-07-13 23:57 i金少 阅读(253) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示