PHPackages                             summonshr/requests - 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. summonshr/requests

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

summonshr/requests
==================

Use laravel requests only

0.0.3(3y ago)19MITPHPPHP ^8.2

Since May 15Pushed 3y agoCompare

[ Source](https://github.com/Summonshr/Requests)[ Packagist](https://packagist.org/packages/summonshr/requests)[ Docs](https://github.com/summonshr/requests)[ RSS](/packages/summonshr-requests/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (3)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f02a080c12d1f2b63c63aa17fa591340f3d0215ba21cebc23458de23522508ed/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73756d6d6f6e7368722f72657175657374732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/summonshr/requests)[![Total Downloads](https://camo.githubusercontent.com/c06335d5f2c5cf598382e3c2c2ae14e4bb6e2d232a521ee2566140d3ac000366/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73756d6d6f6e7368722f72657175657374732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/summonshr/requests)

This package is a bit inspired by  and some codes are even copied.

Why this package
================

[](#why-this-package)

Laravel application tends to have too much controllers which does not do much. Same all five request, index, create, show, edit and destroy. For each controller, we would have five functions, five requests to validate those requests too. This seems redundant. For anything to add, I would have to add atleast one route, one controller and one request.

Rather than that, we could simply have one route that would accept anything, which would call a file that would authorize, validate and process a request.

So, this package was invented.

No more controllers(If you need one, let me know why). No more adding routes, just dive through requests.

One route to rule them all.

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

[](#installation)

You can install the package via composer:

```
composer require summonshr/requests
```

Usage
-----

[](#usage)

```
