shaan
Explore posts from serversTLCTuto's Laravel Corner
•Created by shaan on 7/1/2024 in #💡filament
https://discord.com/channels/883083792112300104/1257389318503268362
Please help me to solve this
3 replies
TLCTuto's Laravel Corner
•Created by shaan on 10/30/2023 in #💡filament
Old value after failed validation
3 replies
TLCTuto's Laravel Corner
•Created by shaan on 10/6/2023 in #🚀laravel
n+1
public function index(Request $request)
{
$search_query = $request->get('search');
$nebulizations = Nebulization::query();
if ($search_query){
$nebulizations->search($search_query);
}
$nebulizations = $nebulizations->with(['patient','nurse','medicineNebulizations'])->latest()->paginate(10)->withQueryString();
return view('nebulizations.index', compact('nebulizations'));
}
this gives me 10queries, and it takes 1s to load a single record. the medicine relations are coming from MedicineNebulization
14 replies
TLCTuto's Laravel Corner
•Created by shaan on 8/29/2023 in #🚀laravel
Fetch data from API and fill form
is there anyway to achieve this in filament? a form with a text input, and a fetch button. enter user's social security number, and fetch all other data and fill the form automatically.
7 replies