PHPackages                             fherryfherry/laravel-api-token - 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. fherryfherry/laravel-api-token

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

fherryfherry/laravel-api-token
==============================

Make a tokenize for our API in Laravel is never been easy

v1.2.1(4y ago)016MITPHPPHP ^7.4|^8.0

Since Aug 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/fherryfherry/laravel-api-token)[ Packagist](https://packagist.org/packages/fherryfherry/laravel-api-token)[ RSS](/packages/fherryfherry-laravel-api-token/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Laravel Simple API Token
========================

[](#laravel-simple-api-token)

This library is to Tokenize your current API Restful very easy. It makes your API more secure.

How this library works :

1. It will create table `laravel_api_tokens`
2. Insert the token data into it
3. Validate user request with table `laravel_api_tokens`

Requirements
------------

[](#requirements)

- Laravel 6, 7, or 8
- PHP 7.4 or 8.x

Installation
------------

[](#installation)

Run this command on your root project

```
composer require fherryfherry/laravel-api-token
```

Run the migration bellow

```
php artisan migrate
```

After installation is done, then run bellow command to export configuration file :

```
php artisan vendor:publish --provider=FherryFherry\LaravelApiToken\LaravelSimpleApiTokenServiceProvider
```

Configuration
-------------

[](#configuration)

```
