my-idlers/app/View/Components/ProvidersSelect.php

25 lines
527 B
PHP
Raw Normal View History

<?php
namespace App\View\Components;
use App\Models\Providers;
2022-03-05 16:58:25 +01:00
use Illuminate\Support\Facades\Cache;
use Illuminate\View\Component;
class ProvidersSelect extends Component
{
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|\Closure|string
*/
public function render()
{
$all_providers = Providers::allProviders();
return view('components.providers-select', [
2022-03-05 16:58:25 +01:00
'providers' => $all_providers
]);
}
}