We have added as prefix to separate out named routes of api and web. Also its a better way to
store api controllers in separate directory with separate namespace. so we have added "\\API"
suffix in namespace.

Customize Configuration (optional)

If you have tweaked any paths or laravel settings like custom namespace, rather than regular laravel
installation, check out this page and configure the
generator based on your
settings

Publish

Publish generator stuff:

php artisan infyom:publish

By publishing api stuff, it will create following files:

appapp directory

HttpHttp directory

ControllersControllers directory

AppBaseController.phpNew base controller which
will be used as a base class for each controller

teststests directory

traitstraits directory to store created traits of models

ApiTestTrait.phpApi test trait to be used for testing

Recommended: If you have a fresh new laravel application and want a basic admin panel layout with adminlte admin panel, then you can use
Publish Layout Command.