VoltServiceProvider.php 494 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Support\ServiceProvider;
  4. use Livewire\Volt\Volt;
  5. class VoltServiceProvider extends ServiceProvider
  6. {
  7. /**
  8. * Register services.
  9. */
  10. public function register(): void
  11. {
  12. //
  13. }
  14. /**
  15. * Bootstrap services.
  16. */
  17. public function boot(): void
  18. {
  19. Volt::mount([
  20. config('livewire.view_path', resource_path('views/livewire')),
  21. resource_path('views/pages'),
  22. ]);
  23. }
  24. }