<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Misc\Captcha; use Illuminate\Support\ServiceProvider; class CaptchaServiceProvider extends ServiceProvider { public function boot() { $this->publishes(array(__DIR__ . '/../../../config/captcha.php' => config_path('captcha.php')), 'config'); } public function register() { $this->mergeConfigFrom(__DIR__ . '/../../../config/captcha.php', 'captcha'); $this->app->bind('captcha', function ($jOsVj) { return new Captcha($jOsVj['Illuminate\\Filesystem\\Filesystem'], $jOsVj['Illuminate\\Config\\Repository'], $jOsVj['Intervention\\Image\\ImageManager'], $jOsVj['Illuminate\\Session\\Store'], $jOsVj['Illuminate\\Hashing\\BcryptHasher'], $jOsVj['Illuminate\\Support\\Str']); }); } }