Protect recordings per user, seed a demo login on container start, and bind-mount the app with Vite HMR for local Compose development.
24 lines
451 B
PHP
24 lines
451 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class TranscribeRecordingRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
$recording = $this->route('recording');
|
|
|
|
return $recording !== null && $this->user()?->can('transcribe', $recording) === true;
|
|
}
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [];
|
|
}
|
|
}
|