PHP code example of wibesoft-company / laravel-request-default

1. Go to this page and download the library: Download wibesoft-company/laravel-request-default library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wibesoft-company / laravel-request-default example snippets




namespace App\Http\Requests\BotMatch;

use Illuminate\Foundation\Http\FormRequest;
use WibesoftCompany\LaravelRequestDefault\Traits\InputDefaulter;

class FilterRequest extends FormRequest
{
    use InputDefaulter;

    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'page' => 'numeric',
            'per_page' => 'numeric',
            'from_date' => 'date',
            'to_date' => '