I use Laravel 5.2 and have a problem with middleware. There is the code in the routes.php
use Illuminate\\Contracts\\Auth\\Access\\Gate; Route::group([
Define middle in the constructer of your controller and it will do the trick here
public function __construct() { $this->middleware('auth:api'); }