0

I am using Laravel-8 for an application. I have a folder Api inside folder app of Laravel. And i want to create Controller inside folder Web. But when i run command line:

php artisan Api/V1/Appraisal/AppraisalGoalsController 

It create controller inside folder Http/Controllers as default.

So how to do that?

1
  • If you avoid Laravel's structure, there will be a lot of code you'd need to fix additionally. Good location would be app/Http/Controllers/Api/V1/Appraisal/<AllAppraisalApiControllers>. Commented Dec 22, 2020 at 16:43

1 Answer 1

1

Why not create a folder in "Http\Controllers" called "Api" and move forward from there?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.