Added a challenge for flying the 3 major airline alliances
This commit is contained in:
@@ -102,6 +102,7 @@ class UserProfileController extends Controller
|
||||
$canView = Gate::allows('viewProfileData', $user);
|
||||
|
||||
$achievements = Achievement::with(['category', 'difficulty'])
|
||||
->orderBy('id', 'asc')
|
||||
->get()
|
||||
->groupBy(fn(Achievement $a) => $a->category->name)
|
||||
->map(fn($group) => $group->sortBy('sort_order')->values());
|
||||
|
||||
Reference in New Issue
Block a user