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('no_spaces', function($attr, $value){
            return preg_match('/^\s*$/u', $value);
        });
    }
public function boot ( ) { validator :: extend ( 'no_spaces' , function ( $ attr , $ value ) { return preg_match ( '/^\s*$/u' , $ value ) ; } ) ; }
Bootstrap any application services.
Bootstrap any application services .