Route without authentication Laravel

0

Good morning

I need to release a REST service on a system with authentication, in Laravel 5.1, so when I access the REST address in a place that is not authenticated it asks to enter login and password, but this service will not need authentication, because will be used by another system of our own company for small queries.

Is it possible to free a route in Laravel that does not pass through the authentication that already exists? All I try to do is to forward the login page and password to authenticate before I can use the service.

Thank you in advance

    
asked by anonymous 26.08.2016 / 16:14

1 answer

2

If authentication is done through middleware

Route::group(['middleware' => 'auth.basic'], function() {

  //Rotas autenticadas

});

  //Rotas não autenticadas

Route::get('approve', ['as' => 'approve', 'uses' => 'Web\CustomerCardController@approve_customer_card']);
    
06.09.2016 / 16:52