shaan
Explore posts from serversTLCTuto's Laravel Corner
•Created by shaan on 8/29/2023 in #🚀laravel
Fetch data from API and fill form
7 replies
TLCTuto's Laravel Corner
•Created by shaan on 10/30/2023 in #💡filament
Old value after failed validation
oh, this is a old project. will start a filament one soon 😄
3 replies
TLCTuto's Laravel Corner
•Created by shaan on 8/29/2023 in #🚀laravel
Fetch data from API and fill form
yes. Thank you so much for the help 🙂
7 replies
TLCTuto's Laravel Corner
•Created by shaan on 10/6/2023 in #🚀laravel
n+1
Its loading the amount correct
14 replies
TLCTuto's Laravel Corner
•Created by shaan on 10/6/2023 in #🚀laravel
n+1
This is the edit form
14 replies
TLCTuto's Laravel Corner
•Created by shaan on 10/6/2023 in #🚀laravel
n+1
@foreach($nebulization->medicineNebulizations as $medicine_used)
<tr>
<td class="pl-4 w-[45%] py-2">
<select id="medicine"
name="medicine[]"
class="font-thin text-sm w-full p-2 border border-gray-200 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm">
@foreach( $medicines as $medicine )
<option value="{{ $medicine->id }}" @selected($medicine_used->id == $medicine->id)>{{ $medicine->name }}</option>
@endforeach
</select>
</td>
<td class="pl-4 w-[45%] py-2">
<input type="text" name="amount[]" value="{{ $medicine_used->amount }}"
placeholder="eg: 5m l, 3 gm, 5 ltr"
class="font-thin text-sm w-full p-2 border border-gray-200 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm">
</td>
14 replies
TLCTuto's Laravel Corner
•Created by shaan on 10/6/2023 in #🚀laravel
n+1
, how to load the old values from a dynamic input fields? here is the code.
14 replies
TLCTuto's Laravel Corner
•Created by shaan on 10/6/2023 in #🚀laravel
n+1
Now the problem solved. But got more.
14 replies