Force PLA to not allow guests viewing the site, and thus requiring a login.

This should close #288
This commit is contained in:
2025-02-26 17:19:23 +11:00
parent f20d9891f2
commit 0684424328
8 changed files with 74 additions and 52 deletions

View File

@@ -31,10 +31,9 @@ class AppServiceProvider extends ServiceProvider
$this->loadViewsFrom(__DIR__.'/../../resources/themes/architect/views/','architect');
// Enable pluck on collections to work on private values
Collection::macro('ppluck', function ($attr) {
return $this->map(function (object $item) use ($attr) {
return $item->{$attr};
})->values();
});
Collection::macro('ppluck',
fn($attr)=>$this
->map(fn($item)=>$item->{$attr})
->values());
}
}