PHPackages                             oanhnn/laravel-fakeid - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. oanhnn/laravel-fakeid

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

oanhnn/laravel-fakeid
=====================

Using fake id on URL in Laravel application

v2.0.0(5y ago)23191[1 issues](https://github.com/oanhnn/laravel-fakeid/issues)MITPHPPHP ^7.2.5CI failing

Since Oct 7Pushed 5y ago2 watchersCompare

[ Source](https://github.com/oanhnn/laravel-fakeid)[ Packagist](https://packagist.org/packages/oanhnn/laravel-fakeid)[ Docs](https://github.com/oanhnn/laravel-fakeid)[ RSS](/packages/oanhnn-laravel-fakeid/feed)WikiDiscussions master Synced yesterday

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

Laravel FakeID
==============

[](#laravel-fakeid)

[![Build Status](https://github.com/oanhnn/laravel-fakeid/workflows/CI/badge.svg)](https://github.com/oanhnn/laravel-fakeid/actions)[![Coverage Status](https://camo.githubusercontent.com/84c18ad91098806343f1f04959a842c0ad958cbcdec64ccbf15dfe16c4add465/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6769746875622f6f616e686e6e2f6c61726176656c2d66616b6569642f6d61737465722e737667)](https://coveralls.io/github/oanhnn/laravel-fakeid)[![Latest Version](https://camo.githubusercontent.com/ab1b2c5870744988657c95b4b29a9b62ae3073cd946d6816075868585ab8cf6d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f616e686e6e2f6c61726176656c2d66616b6569642e7376673f6c6162656c3d6c617465737425323076657273696f6e)](https://packagist.org/packages/oanhnn/laravel-fakeid)[![Total Downloads](https://camo.githubusercontent.com/092caaa1dd89430cc6cedd2e00de40a813c13d033803e9beac855789f51ff5e6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f616e686e6e2f6c61726176656c2d66616b6569642e737667)](https://packagist.org/packages/oanhnn/laravel-fakeid)[![Requires PHP](https://camo.githubusercontent.com/224d881c854317a7bd0f9e31685c98f480ab9a86964312e21901d36a32f64149/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6f616e686e6e2f6c61726176656c2d66616b6569642e737667)](https://packagist.org/packages/oanhnn/laravel-fakeid)[![Software License](https://camo.githubusercontent.com/6885d84a36db0b7c7ed5fcc7eee90270fe6e19a47c228bb716c75cb22808700e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6f616e686e6e2f6c61726176656c2d66616b6569642e737667)](LICENSE)

Easy fake model ID on URL Laravel Application.

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

[](#requirements)

- php &gt;=7.2
- Laravel 7.0+

> Laravel 5.5+ using version 1.x (require php 7.1.3+)

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

[](#installation)

Begin by pulling in the package through Composer.

```
$ composer require oanhnn/laravel-fakeid
```

Publish config file with

```
$ php artisan vendor:publish --provider="Laravel\\FakeId\\ServiceProvider"
```

or

```
php artisan vendor:publish --tag=laravel-fakeid-config
```

Edit `config/fakeid.php` for config specific drivers.

Usage
-----

[](#usage)

### Getting start

[](#getting-start)

In your model class, add implement interface `ShouldFakeId` and a trait `RoutesWithFakeId`:

```
