robclancy / laravel4-hashing
当您无法在 Laravel 4 中使用 Bcrypt 时使用的包。
1.0.0
2014-02-28 12:32 UTC
Requires
- php: >=5.3.2
- illuminate/hashing: ~4.0
- passwordlib/passwordlib: *
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is auto-updated.
Last update: 2024-09-22 04:24:30 UTC
README
当您无法在 Laravel 4 中使用 Bcrypt 时使用的包。这将 Laravel 4 的最低 PHP 版本降至 5.3.2。
安装
使用 composer 下载
将以下内容添加到您的 composer.json
文件的 "require" 部分
"robclancy/laravel4-hashing": "1.0.x"
然后像往常一样运行 composer update
。
添加新的服务提供者
进入 app/config/app.php
并找到 Illuminate\Hashing\HashServiceProvider
。将 Illuminate
更改为 Robbo
。因此,它将变为 Robbo\Hashing\HashServiceProvider
。
就这样,您现在正在使用 Sha512 哈希并兼容 PHP 5.3.2+