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
Pdf generation and sending Database notifications takes too much time.
Pdf generation and sending Database notifications takes too much time. like 5 to 6s. I have created a Job too. still its taking same amount of time. Here is my code for Job
And Here is the LetterEdit
16 replies
Issues with Assigning multiple roles
this is the code in UserResource, and these are methods in UserServices, that i use to assign. However, i could not track the issue. This is the error it give while i try to save after selecting multiple roles. trying to implement multiple() https://flareapp.io/share/LPdv3Mg5
1 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