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

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

dees040/persisting-requests
===========================

Laravel package for create persisting request.

0.1.1(8y ago)060BeerwarePHPPHP &gt;=5.4.0

Since Apr 22Pushed 8y ago1 watchersCompare

[ Source](https://github.com/dees040/persisting-requests)[ Packagist](https://packagist.org/packages/dees040/persisting-requests)[ RSS](/packages/dees040-persisting-requests/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Persisting Requests
===================

[](#persisting-requests)

This package will let you create persisting requests in a breeze. It will call a persisting method on your request via the Laravel Container, meaning you can use dependency injection. The package is inspired by [this Laracasts video](https://laracasts.com/series/whip-monstrous-code-into-shape/episodes/1). The package can help cleaning up your controller.

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

[](#installation)

Install the latest version with composer.

```
composer require dees040/persisting-request

```

After installing the packages and the service provider to the `providers` array in `app/config.php`.

```
dees040\PersistingRequests\ServiceProvider::class,
```

Usage
-----

[](#usage)

You can now run the `make:persist` command.

```
php artisan make:persist FooBarRequest

```

In your controller you can now add the fresh created request to the method. Laravel will automatically inject in via dependency injection.

```
