mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 23:42:32 +01:00
da83aa1f23
Fix
27 lines
603 B
PHP
27 lines
603 B
PHP
<?php
|
|
|
|
namespace App\View\Components;
|
|
|
|
use App\Models\Providers;
|
|
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 = Cache::rememberForever('all_providers', function () {
|
|
return Providers::all();
|
|
});
|
|
return view('components.providers-select', [
|
|
'providers' => $all_providers
|
|
]);
|
|
}
|
|
}
|