PHPackages                             flavorly/inertia-flash - 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. flavorly/inertia-flash

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

flavorly/inertia-flash
======================

A Quick way to flash &amp; share InertiaJS Variables from anywhere, persisting on session.

v0.6.4(10mo ago)245452MITPHPPHP ^8.3 | ^8.4CI passing

Since Apr 27Pushed 10mo ago2 watchersCompare

[ Source](https://github.com/flavorly/inertia-flash)[ Packagist](https://packagist.org/packages/flavorly/inertia-flash)[ Docs](https://github.com/flavorly/inertia-flash)[ RSS](/packages/flavorly-inertia-flash/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (13)Versions (21)Used By (0)

Inertia Flash ⚡
===============

[](#inertia-flash-)

[![](./assets/cover.png)](./assets/cover.png)

[![Latest Version on Packagist](https://camo.githubusercontent.com/332bef6b95aac972e43307b4b5e7bf3e7b48eb2d4be68aceb4a9ba1717dac089/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666c61766f726c792f696e65727469612d666c6173682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/flavorly/inertia-flash)[![GitHub Tests Action Status](https://camo.githubusercontent.com/ca16ef36175bcca09bfb1c10cf644a40241976e899efd6a1a9ee4c7b3891cebe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f666c61766f726c792f696e65727469612d666c6173682f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/flavorly/inertia-flash/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/095afd0ff984de4f754fad02ce2800af06d61e20cf8b10e4f055a2fbbea177dc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f666c61766f726c792f696e65727469612d666c6173682f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/flavorly/inertia-flash/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/63e69967b11262c58a146091b7020235a1f1e509b8ab90c0c51e3f1492c2466a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666c61766f726c792f696e65727469612d666c6173682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/flavorly/inertia-flash)

A Quick way to flash &amp; share variables to [InertiaJS](https://inertiajs.com/) that persist on session or cache. Really useful for redirects &amp; returns! Sharing to Inertia anywhere :)

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

[](#installation)

You can install the package via composer:

```
composer require flavorly/inertia-flash
```

You can publish the config file with:

```
php artisan vendor:publish --tag="inertia-flash-config"
```

This is the contents of the published config file:

```
