Unable to boot ApiServiceProvider, configure an API domain or prefix.

臭大佬 2019-09-21 03:34:59 2791
php  laravel 
简介 错误信息:Unable to boot ApiServiceProvider, configure an API domain or prefix.

错误信息:

Unable to boot ApiServiceProvider, configure an API domain or prefix...

解决方法:

// .env文件增加如下代码

AUTH_GUARD=api

API_DEBUG=true
API_VERSION=v1
API_PREFIX=api
API_SUBTYPE=app
API_STRICT=false
API_NAME="Sites API"
API_STANDARDS_TREE=vnd
API_DEFAULT_FORMAT=json
API_CONDITIONAL_REQUEST=false