© 2026 Hedgehog Software, LLC
protected static ?string $recordTitleAttribute = 'translations.title'; public static function getGlobalSearchResults(string $search): Collection { return static::getModel()::query() ->whereHas('translations', function ($query) use ($search) { $query->where('title', 'like', '%'.$search.'%'); }) ->get(); } public static function getRecordUrl(Model $record): ?string { return static::getUrl('edit', ['record' => $record]); }
Join the Discord to ask follow-up questions and connect with the community
A powerful open-source UI framework for Laravel • Build and ship apps & admin panels fast with Livewire
20,181 Members