LanguageSwitcher.php 540 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace App\View\Components;
  3. use Illuminate\View\Component;
  4. use Illuminate\Contracts\View\View;
  5. class LanguageSwitcher extends Component
  6. {
  7. /**
  8. * Create a new component instance.
  9. *
  10. * @return void
  11. */
  12. public function __construct()
  13. {
  14. //
  15. }
  16. /**
  17. * Get the view / contents that represent the component.
  18. *
  19. * @return \Illuminate\Contracts\View\View|\Closure|string
  20. */
  21. public function render(): View
  22. {
  23. return view('components.language-switcher');
  24. }
  25. }