Forms\Components\TextInput::make('title')->afterStateUpdated(function ($state, Set $set, Get $get, $livewire) { // Get Channel Domain $domain = Channel::all()->find($get('channel_id'))->value('domain'); // Get Active Language $languagePrefix = $livewire->activeLocale; // Get Slug State $slug = Str::slug($state); // Generate new Slug $finalSlug = $domain . '/' . $languagePrefix . '/' . $slug; $set('slug', $finalSlug); // Check if Slug Exist }),