Skip to content

Commit

Permalink
fix error when running on console
Browse files Browse the repository at this point in the history
  • Loading branch information
rahmanramsi committed Aug 15, 2023
1 parent b31ae8f commit d4a07e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ protected function setupStorage()

protected function setupView()
{
View::share('currentConference', Conference::current());
if (!$this->app->runningInConsole()) {
View::share('currentConference', Conference::current());
}
}
}

0 comments on commit d4a07e7

Please sign in to comment.