EDIT:
Should ofcourse be
userApp.controller('UsersController', function($scope, $resource) {
$scope.users = $resource('/users/getAllUsers').query();
});
I found the answer. JWT-auth!
Check out https://scotch.io/tutorials/token-based-authentication-for-angularjs-and-laravel-apps if you got the same problem that i had.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community