30 lines
594 B
PHP
30 lines
594 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Bo\Joinuspage;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class StoreJoinuspageRequest extends FormRequest
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return boolean
|
|
*/
|
|
public function authorize(): bool
|
|
{
|
|
return auth('backend')->check();
|
|
}
|
|
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
'video_id' => 'required|string|regex:%([^"&?\/\s]{11})%i',
|
|
];
|
|
}
|
|
}
|