dingo / dingo/api

L5.1 command api:cache need twice

Open
#1,417 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
9.4k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

When I call `api:cache` first, the file: `bootstrap/cache/routes.php` is

> app('api.router')->setAdapterRoutes(unserialize(base64_decode('YTowOnt9')));

and run `api:routes`

>\>php artisan api:routes
>
> Your application doesn't have any routes.

the http respond is:

>"message": "The version given was unknown or has no registered routes.",
>"status_code": 400,

Then I call `api:cache` command again, it is normal.
So, what is the problem?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.