定制 taskforcedev/user 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

taskforcedev/user

最新稳定版本:v5.0.2

Composer 安装命令:

composer require taskforcedev/user

包简介

A laravel package providing routes, controller and views for user login/register, etc.

README 文档

README

A package for Laravel 5 (4 branch also available) which provides routes, views and controllers for authentication including register, login, logout and home.

Travis Build Latest Stable Version Total Downloads Latest Unstable Version License

About

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).

Installation

To install the package add the following line to your composer.json

"require": { "taskforcedev/user": "5.*" }

After doing this you should run composer update, then a dump autoload preferably using artisan

php artisan dump-autoload

Service Provider

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,

Overwriting Config

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"

Common Problems

Illuminate \ Database \ Eloquent \ MassAssignmentException username

For this you need to add the following to your App/Models/User.php

protected $fillable = ['username', 'password'];

统计信息

  • 总下载量: 263
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-11-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固