For this assessment, you can create a new laravel project and either post it on github or a local zip
- Create a route for
POST
->/api/campaign/create
- Create a controller for
CampaignController.php
with the API resource methods - Create a model for campaigns table and update the campaign controller to create, update, and delete
- Within
CampaignController
create method forindex
and query the campaign model forstatus
=active
return the results - Create a database migration for the
campaigns
table