Search code examples
apilaravelauthenticationrestful-architecture

Laravel 5.3 RESTFul API without authentication


I want to create an API with Laravel 5.3 but i don't need any kind of authentication. Is it possible to get rid of it? I don't want any token or any kind of authentication.


Solution

  • To help anyone in my situation who arrive here : be aware that any route in api.php is prefixed by "api/". It is set in /app/Providers/RouteServiceProvider.php.

    So :

    Route::get('/delegates', "APIController@delegate");

    Will be accessible from

    http://www.yourdomain.com/api/delegates

    Sorry if it's a bit off-topic, but hope it can help someone.