Simple REST API with Laravel

First you can create the model with the resorce controller

Now you can migrate the database file

Now you can create the API Resouce for the Product

This will create the ProductResource.php file at App\Http\Resources\Product