mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
Dusting
This commit is contained in:
@@ -46,14 +46,14 @@ class AppServiceProvider extends ServiceProvider
|
||||
|
||||
public function bootAuth(): void
|
||||
{
|
||||
Gate::define('viewPulse', fn(User $user) => $user->admin);
|
||||
Gate::define('viewPulse', fn (User $user) => $user->admin);
|
||||
}
|
||||
|
||||
public function bootRoute(): void
|
||||
{
|
||||
RateLimiter::for('api', fn(Request $request) => Limit::perMinute(60)->by($request->user()?->id ?: $request->ip()));
|
||||
RateLimiter::for('api', fn (Request $request) => Limit::perMinute(60)->by($request->user()?->id ?: $request->ip()));
|
||||
|
||||
Route::bind('post', fn($path) => $this->app->make(Sheets::class)
|
||||
Route::bind('post', fn ($path) => $this->app->make(Sheets::class)
|
||||
->collection('posts')
|
||||
->get($path) ?? abort(404));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user