thecsea / laravel-noredirect-traits
The library that allows you to use standard laravel traits without redirect, returning information via JSON and HTTP code, ideal for REST applications
Installs: 51
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/thecsea/laravel-noredirect-traits
Requires
- php: >=5.3.0
- laravel/framework: ^5.1
Requires (Dev)
README
The library that allows you to use standard laravel traits without redirect, returning information via JSON and HTTP code, ideal for REST applications
How to use
- You have to add the composer dependency
composer require "thecsea/laravel-noredirect-traits"
- Use
use \it\thecsea\laravel\noredirect_traits\ResetsPasswords;
instead standard traits inPasswordController.php
- Substitute
ResetsPasswords
whit the traits that you want in the file where you need it
Traits implemented
- ResetsPasswords
- RegistersUsers
- AuthenticatesUsers
- AuthenticatesAndRegistersUsers
- ThrottlesLogins