whereRaw("LOWER({$attribute}) = ?", [$value]); if (isset($parameters[1])) { $query->where($parameters[1], '!=', $parameters[2]); } return $query->count() === 0; }); // Custom validation rule: exturl Validator::extend('exturl', function ($attribute, $value, $parameters, $validator) { $allowed_schemes = ['http', 'https', 'mailto', 'tel']; return in_array(parse_url($value, PHP_URL_SCHEME), $allowed_schemes, true); }); // Add namespace for blocks View::addNamespace('blocks', base_path('blocks')); // Customize Livewire script route Livewire::setScriptRoute(function ($handle) { return Route::get(asset('assets/vendor/livewire/livewire.js'), $handle); }); } }