Skip to content

Commit ee07068

Browse files
committed
Make Flash a singleton instance in the ServiceProvider
1 parent 4689b28 commit ee07068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FlashServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private function registerFlasher()
7676
*/
7777
private function registerFlash()
7878
{
79-
$this->app->bind('CodeZero\Flash\Flash', function () {
79+
$this->app->singleton('CodeZero\Flash\Flash', function () {
8080
$config = config('flash');
8181
$session = app()->make('CodeZero\Flash\SessionStore\SessionStore');
8282
$translator = app()->make('CodeZero\Flash\Translator\Translator');

0 commit comments

Comments
 (0)