Download the PHP package nasyrov/laravel-interactions without Composer
On this page you can find all versions of the php package nasyrov/laravel-interactions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nasyrov/laravel-interactions
More information about nasyrov/laravel-interactions
Files in nasyrov/laravel-interactions
Package laravel-interactions
Short Description Laravel package for interactions.
License MIT
Homepage https://github.com/nasyrov/laravel-interactions
Informations about the package laravel-interactions
Laravel Interactions
Laravel package for interactions.
Requirements
Make sure all dependencies have been installed before moving on:
Install
Pull the package via Composer:
Register the service provider in config/app.php
:
Usage
Let's generate a typical user registration flow with the use of interactions.
First, generate a RegisterUser
interaction via the command:
The command above will create a new file app/Interactions/RegisterUser.php
.
Let's open the file and tailor it for our needs – create a new user:
Next, include the CallsInteractions
trait into the base controller so we will be able to run the interactions in any other controller that extends the one:
Finally, in the UsersController
controller run the RegisterUser
interaction and pass the request object:
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Evgenii Nasyrov
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-interactions with dependencies
illuminate/console Version 5.5.*|5.6.*
illuminate/support Version 5.5.*|5.6.*