PHPackages                             ajthinking/tinx - 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. ajthinking/tinx

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

ajthinking/tinx
===============

Reload your Laravel Tinker session from inside Tinker, plus magic shortcuts for first(), find(), where(), and more!

v2.6.0(6y ago)440419.4k↓20%362MITPHP

Since Oct 19Pushed 6y ago10 watchersCompare

[ Source](https://github.com/furey/tinx)[ Packagist](https://packagist.org/packages/ajthinking/tinx)[ RSS](/packages/ajthinking-tinx/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (42)Used By (2)

⛔️ Laravel Tinx (Deprecated)
============================

[](#️-laravel-tinx-deprecated)

[![No Maintenance Intended](./readme/unmaintained.svg)](http://unmaintained.tech/)

**Laravel Tinx** was archived on 12th December 2019 and is no longer maintained.

Looking for a reloadable version of [Laravel Tinker](https://github.com/laravel/tinker)?

Save the following script as `tinx.sh` to your project root directory:

```
#!/bin/sh
while true; do php artisan tinker; done
```

Run the script to launch a reloadable version of Tinker:

```
$ . tinx.sh
```

While your Tinker session is running, press:

- Ctrl + D from an empty prompt to **reload** your session
- Ctrl + C to **exit** your session

Can't see newly created classes in Tinker?

Exit your Tinker session and run:

```
$ composer dump -o
```

Thanks for loving [Laravel](https://laravel.com), and thanks for digging Tinx.

Happy coding!

🤓👋

---

Laravel Tinx
============

[](#laravel-tinx)

[Laravel Tinker](https://github.com/laravel/tinker), **re()**loaded.

Reload your session from inside Tinker, plus magic shortcuts for first(), find(), where(), and more!

[![](https://camo.githubusercontent.com/1eff19b3a756c7544a11a3489557fb281fed8c2f1577e467aa20484f779222bf/68747470733a2f2f692e696d6775722e636f6d2f55394e6e4469782e676966 "source: imgur.com")](https://camo.githubusercontent.com/1eff19b3a756c7544a11a3489557fb281fed8c2f1577e467aa20484f779222bf/68747470733a2f2f692e696d6775722e636f6d2f55394e6e4469782e676966)

Contents
--------

[](#contents)

- [Installation](#installation)
- [Usage](#usage)
    - [Reload your Tinker session](#reload-your-tinker-session)
    - [Magic models](#magic-models)
    - [Naming strategy](#naming-strategy)
    - [Names](#names)
    - [Fast factories](#fast-factories)
- [Configuration](#configuration)
- [Contributing](#contributing)
- [License](#license)

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

[](#installation)

To install Tinx, simply require it via Composer:

```
composer require --dev ajthinking/tinx
```

If using Laravel &lt;=5.4, register Tinx's service provider in `config/app.php` (Laravel &gt;=5.5 [does this automatically](https://laravel.com/docs/5.5/packages#package-discovery)):

```
