Package Data | |
---|---|
Maintainer Username: | PrivateSniper |
Maintainer Contact: | taskforce2eu@gmail.com (Taskforcedev) |
Package Create Date: | 2014-11-07 |
Package Last Update: | 2016-06-10 |
Home Page: | http://taskforcedev.github.io/user/ |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-11-14 15:00:53 |
Package Statistics | |
---|---|
Total Downloads: | 262 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 1 |
A package for Laravel 5 (4 branch also available) which provides routes, views and controllers for authentication including register, login, logout and home.
A Laravel package providing routes, controller and views for user login/register, etc.
The package follows convention over configuration, examples of this are using the User model that ships with laravel, it is assumed you will create your own migrations etc for this.
What this package provides is an out-of-the-box authentication system built on top of the Laravel model.
Routes:
get /login shows the login form.
get /register shows the registration form.
post /login logs the user in.
post /register registers the user (creates their account).
get /user the default page once the user is logged in.
get /logout logs the user out (takes them to the login page).
To install the package add the following line to your composer.json
After doing this you should run composer update, then a dump autoload preferably using artisan
php artisan dump-autoload
After this you should add the following service provider to your config/app.php
Taskforcedev\User\ServiceProvider::class,
Also if not present please also add the following service provider.
Taskforcedev\LaravelSupport\ServiceProvider::class,
The package comes with default config however you will likely wish to publish this and overwrite with your own config settings.
php artisan vendor:publish --tag="user-config"
For this you need to add the following to your App/Models/User.php
protected $fillable = ['username', 'password'];