定制 sun/laravel-auth 二次开发

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

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

sun/laravel-auth

最新稳定版本:v1.0

Composer 安装命令:

composer require sun/laravel-auth

包简介

The Sun Auth package helps you to protect your application from Unauthorized user.

README 文档

README

Total Downloads Latest Stable Version Latest Unstable Version License

The Sun Auth package helps you to protect your application from Unauthorized user.

Installation Process

In order to install Sun Auth, just add

 "sun/laravel-auth": "1.*"

to your composer.json. Then run composer install or composer update.

Then in your config/app.php add

 Sun\Auth\AuthServiceProvider::class,

in the providers array.

In the config/session.php 'expire_on_close' set to true.

 'expire_on_close' => true,

You need three extra column in your users table for this package.

$table->string('tempPassword', 60);
$table->boolean('active');
$table->string('code', 32);

add this 3 lines of code in your users migration file. Then, run

php artisan migrate:refresh

Then publish Sun Auth's assets with

php artisan vendor:publish

This command will publish all of the assets, views and config files.

Changing Sun Auth Default Configuration

You can also change Sun Auth default configuration. In the config/SunAuth.php setup your application name, url, favicon link, User model namespace.

return [
    'app'  => [
        'name' => 'My Awesome App',
        'url'   => 'http://localhost:8000',
        'favicon-url' => 'http://myawesomeapp.com/favicon.png'
    ],
    'user-model-namespace'  => 'App\User',
    'redirect-after-login'  => '/'
];

Screenshots

Login:

Login

Register:

Register

Register Success:

Register Success

Confirmation Email:

Confirmation Email

Password Reset:

Password Reset

New Password Confirmation Email:

New Password Confirmation Email

License

This package is licensed under the MIT License

统计信息

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

GitHub 信息

  • Stars: 11
  • Watchers: 3
  • Forks: 1
  • 开发语言: CSS

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-16