摘要: laravel的命令调度允许你在laravel命令中清晰流畅的定义。而且在使用调度程序时只需要在服务器上使用一条cron即可。调度在app\Console\kernel.php文件的schedule方法中定义。 启动调度 使用调度只需要将下面的cron项目加到服务器上。 * * * * * php 阅读全文
posted @ 2019-07-24 18:08 尚真 阅读(684) 评论(0) 推荐(0) 编辑
摘要: 错误提示 我的时Console中Commands文件不存在 直接执行 php artisan make:command SendMs 如果失败,自己创建 Commandd文件 在执行 阅读全文
posted @ 2019-07-24 15:42 尚真 阅读(433) 评论(0) 推荐(0) 编辑
摘要: error_reporting(0);//关闭错误 error_reporting(E_ERROR,E_WARNING,E_PARSE);//报告Runtion错误 error_reporting(E_ALL);//报告所有错误 init_set('error_reporting',E_ALL);/ 阅读全文
posted @ 2019-07-24 15:02 尚真 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 在项目目录下运行 php artisan key:generate 然后重新执行 阅读全文
posted @ 2019-07-23 16:04 尚真 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 1,类型得声明 可以使用字符串(string),整数(int),浮点数(float)以及布尔值(bool),来声明参数类型和函数返回值 例:declare(strict_types=1); function add(int $a,int $b): int{ return $a+$b; } echo 阅读全文
posted @ 2019-07-22 16:17 尚真 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 进入 lnmp的安装目录 本人目录在 $ cd /root/lnmp1.6 $ ./install.sh mphp 然后选择你要变更的版本 阅读全文
posted @ 2019-07-06 11:26 尚真 阅读(742) 评论(0) 推荐(0) 编辑
摘要: $ cd /usr/local/nginx/conf $ vim nginx.conf 1,开启pathinfo (设置网站配置文件) 添加一行 include enable-php-phpinfo.conf 2,开启rewrite 在service最后添加如下配置 (此处if 与 “(” 之间要有 阅读全文
posted @ 2019-07-03 15:33 尚真 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 1,下载composer $ curl -sS https://getcomposer.org/installer | php 2,把composer.phar转移之bin目录以便全局使用 $ mv composer.phar /usr/local/bin/composer 4,输入composer 阅读全文
posted @ 2019-06-26 21:31 尚真 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 1,域名根目录只想 laravel/public 2,storage,bootstrap/cache 目录需要设置 777权限 3,访问域名 提示错误 No input file specified. 解决方法 laravel 目录下创建 .htaccess 填充内容 RewriteRule ^(. 阅读全文
posted @ 2019-06-26 18:05 尚真 阅读(258) 评论(0) 推荐(0) 编辑
摘要: ##默认网站(虚拟主机)## LNMP默认网站配置文件:/usr/local/nginx/conf/nginx.confLNMPA默认网站配置文件:/usr/local/nginx/conf/nginx.conf 和 /usr/local/apache/conf/extra/httpd-vhosts 阅读全文
posted @ 2019-06-20 22:27 尚真 阅读(108) 评论(0) 推荐(0) 编辑