exolnet/laravel-emails-confirmation
Composer 安装命令:
composer require exolnet/laravel-emails-confirmation
包简介
Emails confirmation like Laravel native password resets.
README 文档
README
Emails confirmation like Laravel native password resets.
Beforehand
You should already have bootstrap a Laravel 5.5 project and deployed the auth scaffolding:
composer create-project --prefer-dist laravel/laravel your-project-name "5.5.*"
php artisan make:auth
Installation
Install exolnet/laravel-emails-confirmation for Laravel 5.5 using composer:
composer require "exolnet/laravel-emails-confirmation:5.5.*"
If you don't use package auto-discovery, add the service provider to the providers array in config/app.php:
Exolnet\Auth\Emails\EmailServiceProvider::class,
And the facade to the facades array in config/app.php:
'Email' => Exolnet\Support\Facades\Email::class,
Publishing
This modules provides a lot of publishable files. Some of which are overriding standard Laravel app files and others are overriding files (controllers and views) from the auth scaffolding.
If you just started a new project, you can simply force publish everything:
php artisan vendor:publish --provider="Exolnet\Auth\Emails\EmailServiceProvider" --force
If you have an already established project, you can either still force publish everything and look at the git diff
to fix anything important that might have been overwritten, or you can copy the publishable files by hand.
Migrations
Run the migrations:
php artisan migrate
Routes
Invoke the Route::emails() macro in your routes file:
Route::emails();
Or define the following routes explicitly:
// Email Confirmation Routes... Route::get('confirm', 'Auth\ResendConfirmationController@showLinkRequestForm')->name('email.resend'); Route::post('confirm', 'Auth\ResendConfirmationController@resendConfirmLinkEmail'); Route::get('confirm/{email}/{token}', 'Auth\ConfirmController@confirm')->name('email.confirm');
If you want to define explicitly the auth routes instead of using the Route::auth() macro, use this:
// Authentication Routes... Route::get('login', 'Auth\LoginController@showLoginForm')->name('login'); Route::post('login', 'Auth\LoginController@login'); Route::post('logout', 'Auth\LoginController@logout')->name('logout'); // Registration Routes... Route::get('register', 'Auth\RegisterController@showRegistrationForm')->name('register'); Route::post('register', 'Auth\RegisterController@register'); // Password Reset Routes... Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request'); Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email'); Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset'); Route::post('password/reset', 'Auth\ResetPasswordController@reset');
Testing
To run the phpUnit tests, please use:
composer test
Contributing
Please see CONTRIBUTING and CODE OF CONDUCT for details.
Security
If you discover any security related issues, please email security@exolnet.com instead of using the issue tracker.
Credits
License
Copyright © eXolnet. All rights reserved.
This code is licensed under the MIT license. Please see the license file for more information.
exolnet/laravel-emails-confirmation 适用场景与选型建议
exolnet/laravel-emails-confirmation 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.61k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2018 年 07 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「confirmation」 「emails」 「exolnet」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 exolnet/laravel-emails-confirmation 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 exolnet/laravel-emails-confirmation 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 exolnet/laravel-emails-confirmation 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
ConfirmationField is a form field for Atk14 applications. It's like the BooleanField (checkbox) but the ConfirmationField must be ticked.
A laravel package for blacklisting or whitelisting specific email providers or domains
Symfony bundle to require the user to confirm her update email address by clicking on a link sent to the new address. This should be part of the FriendsOfSymfony/UserBundle, but was not accepted as new feature by a maintainer.
Emails addon for Bear Framework
Sendernet transactional email php API client
A Laravel validator for delimiter-separated list of emails.
统计信息
- 总下载量: 2.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-06