laravel
文章平均质量分 95
疯狂的鸡蛋
这个作者很懒,什么都没留下…
展开
-
laravel5.7安装tymon/jwt-auth并实现
Laravel的安装就不多说直接开始jwt教程在laravel的根目录运行composer require tymon/jwt-auth安装执行完毕之后运行以下命令,会自动在config目录生成jwt的配置文件php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider"然后生成密钥,执行完会在.env底部写入jwt密钥php artisan jwt:secret执原创 2020-11-03 22:02:57 · 584 阅读 · 0 评论 -
laravel部署linx报错 Unknown: open_basedir restriction in effect. File is not within the allow
最近在本地开发的项目放到linux上以后访问不成功,页面显示No input file specified.错误找到error.log一看错误为FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/home/wwwroot/web/public/index.php) is not within the allowed path(s): () i..原创 2020-10-14 18:02:19 · 1099 阅读 · 0 评论 -
laravel解决h5+jwt请求接口报405 Method Not Allowed错误问题
h5跨域会默认执行一个预检请求,请求方式为OPTIONS,服务器响应200之后才可进行跨域请求。把if ($request_method = OPTIONS ) { add_header Access-Control-Allow-Origin "*"; add_header Access-Control-Allow-Methods "POST, GET, PUT, OPTIONS, DELETE"; ad...原创 2020-06-23 18:04:37 · 1263 阅读 · 0 评论 -
linux(centos7)+php7.3解决laravel调度任务不执行问题
laravel调度任务创建以后执行php artisan schedule:run 提示执行成功,但是代码并没有正常运行找到php.ini文件进入编辑搜索proc_status找到disable_functions = passthru,exec,system,chroot,chgrp,chown,shell_exec,proc_open,proc_get_status,popen,ini_alter,ini_restore,dl,openlog,syslog,readlink,sy..原创 2020-08-06 10:37:23 · 496 阅读 · 0 评论