Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

iluminar/goodwork

2227 stars
1 code files
View iluminar/goodwork on GitHub

app/Base/Providers/AppServiceProvider.php

Open in GitHub
use Illuminate\Filesystem\Filesystem;
use Livewire\Commands\ComponentParser;
use Livewire\LivewireComponentsFinder;
use Illuminate\Support\ServiceProvider;
use Illuminate\Database\Eloquent\Relations\Relation;
use App\Base\Utilities\ExtendedLivewireComponentsFinder;
 
class AppServiceProvider extends ServiceProvider
{
//
public function register()
{
$this->app->singleton(LivewireComponentsFinder::class, function () {
return new ExtendedLivewireComponentsFinder(
new Filesystem,
config('livewire.manifest_path') ?: app()->bootstrapPath('cache/livewire-components.php'),
collect(config('livewire.class_namespaces'))->map(function ($item) {
return ComponentParser::generatePathFromNamespace($item);
})
);
});
//
}
}

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.