Web_Crawler_API/app/Http/Requests/WebCrawlRequest.php

24 lines
425 B
PHP
Raw Normal View History

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class WebCrawlRequest extends FormRequest
{
public function authorize()
{
// Add authorization logic here if needed
return true;
}
public function rules()
{
return [
'url' => 'required|url',
'depth' => 'integer|min:0',
'refresh' => 'integer',
];
}
}