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()
    {
		Validator::extend('password', function ($attribute, $value, $parameters, $validator) {
		    return Auth::attempt(['email' => Auth::user()->email, 'password' => $value]);
        });
        Blade::directive('datetime', function ($expression) {
            return "<?php echo ($expression)->format('m/d/Y h:ia'); ?>";
        });
    }
public function boot ( ) { Validator :: extend ( 'password' , function ( $ attribute , $ value , $ parameters , $ validator ) { return Auth :: attempt ( [ 'email' => Auth :: user ( ) -> email , 'password' => $ value ] ) ; } ) ; Blade :: directive ( 'datetime' , function ( $ expression ) { return " <?php echo ( $ expression )->format('m/d/Y h:ia'); ?> " ; } ) ; }
Bootstrap any application services.
Bootstrap any application services .