Skip to content

Commit

Permalink
Edit variable.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Aug 8, 2019
1 parent c24ef2c commit c12bde1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MessagesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class MessagesServiceProvider extends MiddlewareServiceProvider
public function register()
{
$this->app->singleton('orchestra.messages', static function ($app) {
return \tap(new MessageBag(), static function ($bag) use ($app) {
$bag->setSessionStore($app->make('session.store'));
return \tap(new MessageBag(), static function ($messageBag) use ($app) {
$messageBag->setSessionStore($app->make('session.store'));
});
});
}
Expand Down

0 comments on commit c12bde1

Please sign in to comment.