I am having a hard time finding what I missed but my model is not detected though it exist. I created the controller,model and migration through "php artisan make:model VacationLeave -m -c". I am using Laravel 8 API and I have this in my controller
This is my Route Api And the post man result trying to post a request
What I've tried so far:
Any help will be appreciated. Thank you guys
I got it. To import models into controller just use "App\Models\ModelName" instead of "App\Http\Models\ModelName"