PHPackages                             raid/core-request - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. raid/core-request

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

raid/core-request
=================

Raid Core Request Package

030PHP

Since Jan 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/MohamedKhedr700/core-request)[ Packagist](https://packagist.org/packages/raid/core-request)[ RSS](/packages/raid-core-request/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Core Request Package
====================

[](#core-request-package)

This package is responsible for handling all requests in the system.

Installation
------------

[](#installation)

```
composer require raid/core-request
```

Configuration
-------------

[](#configuration)

```
php artisan core:publish-request
```

Usage
-----

[](#usage)

```
use App\Traits\Request\WithUserCommonRules;
use Raid\Core\Request\Requests\FormRequest;

class CreateUserRequest extends FormRequest
{
    use WithUserCommonRules;

    /**
     * Get the validation rules that apply to the request.
     */
    public function rules(): array
    {
        return $this->withCommonRules();
    }
}
```

How to work this
================

[](#how-to-work-this)

Let's start with our request class `CreateUserRequest`.

you can use the command to create the request class.

```
php artisan core:make-request CreateUserRequest
```

```
