mirror of
				https://github.com/cp6/my-idlers.git
				synced 2025-11-03 23:59:09 +00:00 
			
		
		
		
	
		
			
	
	
		
			21 lines
		
	
	
	
		
			399 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			21 lines
		
	
	
	
		
			399 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| 
								 | 
							
								<?php
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								namespace App\View\Components;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								use App\Models\OS;
							 | 
						||
| 
								 | 
							
								use Illuminate\Support\Facades\Cache;
							 | 
						||
| 
								 | 
							
								use Illuminate\View\Component;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class OsSelect extends Component
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								    public function render()
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								        $all_os = Cache::rememberForever('all_os', function () {
							 | 
						||
| 
								 | 
							
								            return OS::all();
							 | 
						||
| 
								 | 
							
								        });
							 | 
						||
| 
								 | 
							
								        return view('components.os-select', [
							 | 
						||
| 
								 | 
							
								            'os' => $all_os
							 | 
						||
| 
								 | 
							
								        ]);
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								}
							 |