Code | Solutions
Laravel tutorial for beginners Part 7: php artisan install:api, routes/api.php with the /api prefix, Task::all() as JSON, and Route::apiResource for REST CRUD

Laravel Tutorial for Beginners: REST API, JSON & apiResource (Part 7)

This laravel tutorial for beginners continues the Learn Laravel series by opening the same Tasks data as a REST API: API routes with php artisan install:api, a JSON response from Task::all(), and Route::apiResource on a separate Api/TaskController. If you have not read it yet, start with Part 6: Authentication, Starter Kit & Middleware. After Part 6, the Tasks app is …

Continue Reading