mirror of
https://github.com/crivion/laranode.git
synced 2026-05-07 22:20:44 +08:00
24 lines
438 B
PHP
24 lines
438 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class UpdateWebsitePHPVersionRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
// Authorization is handled in the controller via Gate
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'php_version_id' => ['required', 'integer', 'exists:php_versions,id'],
|
|
];
|
|
}
|
|
}
|
|
|
|
|