PHPackages                             erjanmx/laravel-api-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. erjanmx/laravel-api-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

erjanmx/laravel-api-auth
========================

Dead simple Laravel api authorization middleware

v1.0.1(8y ago)1925.4k↑36.5%2MITPHPCI failing

Since Jun 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/erjanmx/laravel-api-auth)[ Packagist](https://packagist.org/packages/erjanmx/laravel-api-auth)[ RSS](/packages/erjanmx-laravel-api-auth/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (2)Versions (6)Used By (0)

[![Build Status](https://camo.githubusercontent.com/735717f8048d9f548a66e099b83ea5185ec528e03cd921d3acb86faf91e0f437/68747470733a2f2f7472617669732d63692e6f72672f65726a616e6d782f6c61726176656c2d6170692d617574682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/erjanmx/laravel-api-auth)[![Latest Stable Version](https://camo.githubusercontent.com/8663b1c1a996603299aaa2165d760af15ea2d9512b9eb63284ce566daef08641/68747470733a2f2f706f7365722e707567782e6f72672f65726a616e6d782f6c61726176656c2d6170692d617574682f762f737461626c65)](https://packagist.org/packages/erjanmx/laravel-api-auth)[![Total Downloads](https://camo.githubusercontent.com/b80419cc5fe68fce2cc6138d74cd714125ddfd25331bcdc9f7cf74f201b178a7/68747470733a2f2f706f7365722e707567782e6f72672f65726a616e6d782f6c61726176656c2d6170692d617574682f646f776e6c6f616473)](https://packagist.org/packages/erjanmx/laravel-api-auth)

Laravel Api Auth
================

[](#laravel-api-auth)

Laravel gives easy ways to handle api authorization using user based tokens, but sometimes you need to use a single token to give access to your application, especially when you're developing two apps that need to be connected, or perhaps you're in need of connecting Telegram-bot to your app endpoint using webhooks

Laravel-api-auth makes that easy as breathe, no migrations, no models

### Installing package

[](#installing-package)

If you're using Laravel prior to 5.5, consider using [v0.1](https://github.com/erjanmx/laravel-api-auth/tree/v0.1) branch

```
$ composer require erjanmx/laravel-api-auth
```

Publish the Package configuration

```
$ php artisan vendor:publish --provider="Apiauth\Laravel\CAuthServiceProvider"
```

Using package
-------------

[](#using-package)

#### Step 1

[](#step-1)

Change defaults in `config/apiauth.php`

```
