[李景山php]每天laravel-20160918|HashServerProvider
来源:互联网 发布:自媒体是什么 知乎 编辑:程序博客网 时间:2024/06/06 19:11
<?phpnamespace Illuminate\Hashing;use Illuminate\Support\ServiceProvider;// namespaceclass HashServiceProvider extends ServiceProvider{ /** * Indicates if loading of the provider is deferred. * * @var bool */ protected $defer = true;// Indicates if loading of the provider is deferred. // protected a store /** * Register the service provider. * * @return void */ public function register() { $this->app->singleton('hash', function () { return new BcryptHasher; });// set this singleton function with hash and instance of this BcryptHasher; }// register the service provider /** * Get the services provided by the provider. * * @return array */ public function provides() { return ['hash'];// a hash }// get the services provided by the provider.}// too simple!
0 0
- [李景山php]每天laravel-20160918|HashServerProvider
- [李景山php]每天laravel-20160922|RedisServicProvider.php
- [李景山php]每天laravel-20160923|Hub.php
- [李景山php]每天laravel-20160924|PiplineServiceProvider.php
- [李景山php]每天laravel-20160925|Pipeline.php
- [李景山php]每天laravel-20160926|DatabasePresenceVerifier.php
- [李景山php]每天laravel-20160927|Factory.php
- [李景山php]每天laravel-20160928|PresenceVerifierInterface.php
- [李景山php]每天laravel-20160929|ValidatesWhenResolved.php
- [李景山php]每天laravel-20160930|ValidationException.php
- [李景山php]每天laravel-20161001|ValidationServiceProvider.php
- [李景山php]每天laravel-20161016|JsonResponse.php
- [李景山php]每天laravel-20161017|ResponseTrait.php
- [李景山php]每天laravel-20161017|UploadedFile.php
- [李景山php]每天laravel-20161023|Reponse.php
- [李景山php]每天laravel-20161024|ArrayLoader.php
- [李景山php]每天laravel-20161025|LoaderInterface.php
- [李景山php]每天laravel-20161026|TranslationServiceProvider.php
- Hadoop 2环境配置
- Apriori算法
- K-Means算法
- 2016集训小记
- 自定义adapter的listview
- [李景山php]每天laravel-20160918|HashServerProvider
- hdu1071定积分
- Codeforces Round #363 (Div. 2) 题解报告
- (转)带你了解Android常见的内存缓存算法
- 解决java.lang.IncompatibleClassChangeError
- 视觉slam学习资料
- 在项目中使用单例和静态方法的选择
- Spring中jdbcTemplate的用法实例(一)
- 正则表达式的匹配问题