Unfortunately, this project has been discontinued.
A member of the community has suggested the following replacement.
This replacement is not affiliated with laravel-angular.io

Adding Authentication

This step of the tutorial covers adding Json Web Token authentication to your project.

JWT Auth setup

Assuming you've follwed the JWT installation steps, follow the instructions below to require authentication when accessing the api/posts endpoint.

Replace your previous API route with one the ways below:

Route::middleware('auth:api')->get('/posts', 'PostsController@index');


Route::group(['middleware' => 'auth:api'], function () {
    Route::get('/posts', 'PostsController@index');

Voila! You will need to provide an Authorization header to be able to access this endpoint.

Creating tokens

Make sure to follow the JWT Usage docs in order to generate tokens, check for authentication and more.