Protect recordings per user, seed a demo login on container start, and bind-mount the app with Vite HMR for local Compose development.
31 lines
644 B
PHP
31 lines
644 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Listeners\AssignOrphanedRecordings;
|
|
use Illuminate\Auth\Events\Registered;
|
|
use Illuminate\Support\Facades\Event;
|
|
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
|
|
{
|
|
Password::defaults(fn () => Password::min(8));
|
|
|
|
Event::listen(Registered::class, AssignOrphanedRecordings::class);
|
|
}
|
|
}
|