承接 brokerexchange/mcrypthasher 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

brokerexchange/mcrypthasher

最新稳定版本:v6.0.0

Composer 安装命令:

composer require brokerexchange/mcrypthasher

包简介

Mcrypt Hasher For Laravel Auth

README 文档

README

Mcrypt Hasher For Laravel Auth

This package will replace Laravel's default hash service provider.

Installation

  1. composer require brokerexchange/mcrypthasher

  2. (Optional) Publish the config

    • php artisan vendor:publish --tag=mcrypt
  3. (Optional) Add MCRYPT_KEY to your .env file

    • MCRYPT_KEY='My awesome hash key'

note: this step is optional because APP_KEY will be used if MCRYPT_KEY is not provided in your project.

  1. If you are using Laravel 5.5+, this package will be auto-discovered. Otherwise, add McryptHasher\McryptHasherServiceProvider::class, to config/app.php
<?php
    // ...

     /*
     * Package Service Providers...
      */
      McryptHasher\McryptHasherServiceProvider::class

    // ...
  1. In the config/hashing.php file update the driver value to 'mcrypt':
<?php

   return [
       // ...
       
       'driver' => 'mcrypt',
   
       // ...
   ];

Usage

Once installed the mcrypt hasher will automatically be used during authentication and registration. If you wish to use the package manually, you may now use the Hash facade. ex: Hash::make('12345')

If you wish to continue using other hash drivers, add a driver function call to the Hash facade chain. ex: Hash::driver('bcrypt')->make('12345')

Copyright © 2023 Broker Exchange Network

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-10-25