错误信息:
[10-Aug-2020 10:25:41 PRC] PHP Warning: require(): open_basedir restriction in effect. File(/home/wwwroot/ting/vendor/autoload.php) is not within the allowed path(s): (/home/wwwroot/ting/public/:/tmp/:/proc/:/home/wwwroot/huanyue/:/home/wwwroot/office/huanyue-office/:/home/wwwroot/office/ting/) in /home/wwwroot/ting/public/index.php on line 24
[10-Aug-2020 10:25:4...
安装composer提示需要opcache,已经在phpmanager开启了opcache却依然提示错误:
PHP Warning: PHP Startup: Invalid library (appears to be a Zend Extension, try loading using zend_extension=php_opcache.dll from php.ini) in Unknown on line 0
查看php.ini发现phpmanager开启opcache有问题:
phpmanager是在php.ini中添加了:
[PHP_OPCACHE]
extension=php_opcache.dll
这是错误的,正确的...
[root@localhost laravel]# php artisan list
用法:
command [options] [arguments]
可选参数:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
--env[=ENV] The environment the command should ...
开发环境:windows10、iis、php7.3,安装好laravel
1、创建管理员admin数据表
(1)命令提示符执行:php artisan make:migration create_admin_table
(2)修改database/migration/*_create_admin_table.php中的up()方法,如下:
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAdm...