Request
You can generate a request by running the following command.
bash
php artisan better:request StoreBlog BlogINFO
Generated request will be at app/Domains/Blog/Requests/StoreBlogRequest.php
Arguments
request— name of the generated request filedomain— name of the domain where the request will be generated
Options
--force— overwrites an existing file at the same path. See more at:
Request
php
use Laranex\BetterLaravel\Cores\Request;
class StoreBlogRequest extends Request
{
public function authorize(): bool
{
return false;
}
public function rules(): array
{
// your validation rules
}
}