it is a composer issue. check this: https://github.com/composer/composer/issues/6343
first you need to php artisan make:auth it scaffolds authentication files. now you can access from /...
create controllers and return it to view
create routes in routes/api and return in that controller. now connect to url/api/yourapicontroller...
We'd like to thank these amazing companies for supporting us
The Laravel portal for problem solving, knowledge sharing and community building.