July 2018
Intermediate to advanced
420 pages
8h 46m
English
Now, it's time to create the new routes for the registration, login, and logout operations and also protect some routes in our API, as discussed at the beginning of this chapter. Our users can interact with partial content of the application, but, to have access to all of its content, it is necessary to create a user and log in to the application.
Open project/routes/api.php and replace its content with the following code:
<?php use Illuminate\Http\Request; use App\Bike; use App\Http\Resources\BikesResource; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes ...
Read now
Unlock full access