Skip to content

Commit

Permalink
Merge pull request #363 from sunxiaoguang/fix_issue_in_361
Browse files Browse the repository at this point in the history
Fix the issue introduced in #361
  • Loading branch information
SMEWebify committed Apr 28, 2024
2 parents 45ac897 + 8a3a43e commit d68ee9f
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 d68ee9f

Please sign in to comment.