for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ValidateAuthorRequest extends FormRequest
{
public function authorize(): bool
return true;
}
public function rules()
$this->route('author');
return [
'description' => 'required|max:50',
'name' => 'required|max:50',
'is_active' => 'boolean',
];