Files
wticreatorstudio/Modules/StudioPlus/Http/Requests/StoreVideoUrlRequest.php
T

30 lines
649 B
PHP

<?php
namespace Modules\StudioPlus\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreVideoUrlRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*/
public function rules(): array
{
return [
'label' => ['required', 'string'],
'url' => ['required', 'string'],
'previously_published' => ['boolean'],
];
}
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
// return auth()->user()->can('users.create');
}
}