TypechoJoeTheme

Jim Tse

搜索到 2 篇与 的结果 ———
2020-05-05

【PHP】安装laravel

【PHP】安装laravel
Docker Desktop安装(Mac)curl -s "https://laravel.build/example-app" | bashcd example-app ./vendor/bin/sail up常用命令命令意义php artisan make:controller IssuesController新建控制器php artisan make:controller IssuesController -r新建控制器并自动生成对应 RESTful风格路由相关CURD方法php artisan make:migration create_issues_table --create=issues新建一个迁移文件php artisan migrate运行迁移,将迁移文件的内容写入数据库中php artisan migrate:rollback回滚上一次迁移的内容php artisan make:model Models/Issue新建模型php artisan make:model Models/Issue -m同时生成模型和对应的迁移文件php ar...
2020年05月05日
0 阅读
0 评论
2020-05-05

【PHP】PhpStorm+Xdebug调试

【PHP】PhpStorm+Xdebug调试
首先我php版本是5.6和7.2两个版本,php5.6下载的是xdebug2.5.5,php7.2使用Homebrew在Linux和macOS上通过PECL安装Xdebug,命令是pecl install xdebugXdebug下载 可以根据自己php版本在官网下载对应的xdebug版本解压tar -xvzf xdebug-2.5.5.tgz进入解压后的目录cd xdebug-2.5.5运行脚本生成 configure文件phpize安装与编译,--with-php-config目录后跟着自己php环境下的php-config文件路径./configure --enable-xdebug --with-php-config=/opt/homebrew/opt/php@5.6/bin/php-config make clean make make install打开php.ini加入下面内容,里面没注释部分是xdebug2的配置,而;分号注释的配置是xdebug3以上版本的配置xdebug.remote_enable = On xdebug.remote_handler =...
2020年05月05日
0 阅读
0 评论

人生倒计时

今日已经过去小时
这周已经过去
本月已经过去
今年已经过去个月

标签云