home
/
zktecojo
/
public_html
/
vendor
/
mews
/
captcha
/
src
/
Mews
/
Captcha
➕ New
📤 Upload
✎ Editing:
CaptchaServiceProvider.php
← Back
<?php namespace Mews\Captcha; use Illuminate\Support\ServiceProvider; class CaptchaServiceProvider extends ServiceProvider { /** * Indicates if loading of the provider is deferred. * * @var bool */ protected $defer = false; /** * Bootstrap the application events. * * @return void */ public function boot() { $this->package('mews/captcha'); require __DIR__ . '/../../routes.php'; $this->app->validator->resolver(function ($translator, $data, $rules, $messages) { $messages['captcha'] = 'It seems that you have entered an invalid :attribute code. Enter the code that you see in the image below.'; return new CaptchaValidator($translator, $data, $rules, $messages); }); } /** * Register the service provider. * * @return void */ public function register() { $this->app['captcha'] = $this->app->share(function ($app) { return Captcha::instance(); }); } /** * Get the services provided by the provider. * * @return array */ public function provides() { return array('captcha'); } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel