[]], function() { Route::get('/', 'ApiController@index'); }); /** * This is required to have a valid API key */ Route::group(['middleware' => [ 'api.auth' ]], function() { Route::get('/hello', 'ApiController@hello'); });