定制 devmi/laraconfirm 二次开发

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

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

devmi/laraconfirm

Composer 安装命令:

composer require devmi/laraconfirm

包简介

Laravel package for signup confirmation

README 文档

README

This composer package offers an easy way to add confirmation email step for your Laravel applications.

Installation

Begin by pulling in the package through Composer.

composer require devmi/laraconfirm

Next, if using Laravel 5, include the service provider within your config/app.php file. (ignore this step if you using Laravel >= 5.5)

'providers' => [
    Devmi\Laraconfirm\LaraconfirmServiceProvider::class,
];

run your migration

php artisan migrate

Then, replace those 3 traits and don't forget to import them under Devmi\Laraconfirm\Traits\LaraconfirmLoginTrait

in App\Http\Controllers\Auth\LoginController;

use AuthenticatesUsers;
// By
use LaraconfirmLoginTrait;

in App\Http\Controllers\Auth\RegisterController;

use RegistersUsers;
// By
use LaraconfirmRegisterTrait;

in App\Http\Controllers\Auth\ResetPasswordController;

use ResetsPasswords;
// By
use LaraconfirmResetsPasswordsTrait;

Finally, to get a nice feedback message add this code to you login page

// resources\views\auth\login.blade.php

@if (session('laraconfirmAlert'))
  <div class="alert alert-info">
    {!! session('laraconfirmAlert') !!}
  </div>
@endif
// above the login form or anywhere you want
// the form is here below
...

That's it! You'll now be able to confirm your member email before they login.

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2017-09-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固