Projekt-Cleanup: Alle Dateien basierend auf .gitignore neu indexiert

This commit is contained in:
2026-04-10 21:13:24 +02:00
parent daa688ca7a
commit 3f61033d14
352 changed files with 0 additions and 36208 deletions
-58
View File
@@ -1,58 +0,0 @@
<?php
namespace App\Providers;
use App\Models\User;
use Carbon\CarbonImmutable;
use Illuminate\Support\Facades\Date;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\ServiceProvider;
use Illuminate\Validation\Rules\Password;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
$this->configureDefaults();
Gate::define('manage-bonuses', function (User $user) {
// Allowing all authenticated users for now while you are setting it up.
// You should restrict this later!
return true;
});
}
/**
* Configure default behaviors for production-ready applications.
*/
protected function configureDefaults(): void
{
Date::use(CarbonImmutable::class);
DB::prohibitDestructiveCommands(
app()->isProduction(),
);
Password::defaults(fn (): ?Password => app()->isProduction()
? Password::min(12)
->mixedCase()
->letters()
->numbers()
->symbols()
->uncompromised()
: null,
);
}
}