24 lines
425 B
PHP
24 lines
425 B
PHP
|
<?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',
|
||
|
];
|
||
|
}
|
||
|
}
|