mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-13 16:03:04 +00:00
19 lines
438 B
PHP
19 lines
438 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Admin;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class TicketRequest extends FormRequest
|
|
{
|
|
public function rules()
|
|
{
|
|
return [
|
|
'id' => 'required_without:email|exists:user,id|numeric|nullable',
|
|
'email' => 'required_without:id|exists:user,email||nullable',
|
|
'title' => 'required|string',
|
|
'content' => 'required|string',
|
|
];
|
|
}
|
|
}
|