app/Providers/AppServiceProvider.php
/**
     * Bootstrap any application services.
     *
     * @return void
     */
Bootstrap any application services.
@return void
Bootstrap any application services . @return void
public function boot()
    {
	    \Schema::defaultStringLength(191);
	    if (\App::environment('local')) {
		    \DB::enableQueryLog();
	    }
	    \Validator::extend('old_password', function($attribute, $value, $parameters, $validator) {
		    return \Hash::check($value, \Auth::user()->password);
	    });
    }
public function boot ( ) { \ Schema :: defaultStringLength ( 191 ) ; if ( \ App :: environment ( 'local' ) ) { \ DB :: enableQueryLog ( ) ; } \ Validator :: extend ( 'old_password' , function ( $ attribute , $ value , $ parameters , $ validator ) { return \ Hash :: check ( $ value , \ Auth :: user ( ) -> password ) ; } ) ; }
Bootstrap any application services.
Bootstrap any application services .
// The environment is local