Skip to content

Commit

Permalink
Fix the issue introduced in SMEWebify#361
Browse files Browse the repository at this point in the history
An optimization in SMEWebify#361 caused composer install fail without working
database configuration.

Signed-off-by: Xiaoguang Sun <sunxiaoguang@gmail.com>
  • Loading branch information
sunxiaoguang committed Apr 28, 2024
1 parent 45ac897 commit 8a3a43e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Providers/FactoryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ public function register(): void
*/
public function boot()
{
self::$firstFactory ??= Factory::first();
//view()->share('Factory', self::$firstFactory);
View::composer('*', function ($view) {
self::$firstFactory ??= Factory::first();
$view->with('Factory', self::$firstFactory);
});
}
}
}

0 comments on commit 8a3a43e

Please sign in to comment.