Ramdani Syaputra
Ramdani Syaputra
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
Okay thanks ill check back my code
51 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
or is there any approach that we can "force" the toggle to become true/false ?
51 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
thats the problem i currently face in last second video
51 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
see this maybe you have idea
51 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
Yes correct i did on this part and its success
51 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
Yes i got your advice, maybe i need to see which part im doing it wrong, and thanks for your help 😄
51 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
so the parent is jobReportChecklist its showing this data
51 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
actually the checklists its inside jobReportChecklist
51 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
but the "check" field its still "on(1)"
51 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
when i hit the toggle to "on" it did updated on the table, but when i reload, its become "off" again
51 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
yes, i want the toggle follow the check on my database, when its "1" then on
51 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
No description
51 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
No description
51 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
I want just to make the button is set to active/enable when first time access edit page, thats it, also its kinda hard to do i already did what you mention before but the result for this checklists its still empty
51 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
No description
51 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
No description
51 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
I did already so basically i have WorkJob model and it has relation to JobReportChecklist model and the relation is HasOne
public function jobReportChecklist()
{
return $this->hasOne(JobReportChecklist::class);
}
public function jobReportChecklist()
{
return $this->hasOne(JobReportChecklist::class);
}
and also inside JobReportChecklist i have relation to JobChecklist with hasMany relation
public function checklists()
{
return $this->hasMany(JobChecklist::class);
}
public function checklists()
{
return $this->hasMany(JobChecklist::class);
}
51 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
Yes its better, but still same, the result are empty if im using relationship, also when im using custom schema its also cannot "checked" by the result of $checklist->check
51 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
is there any good approach for this ?
51 replies
FFilament
Created by Ramdani Syaputra on 10/20/2024 in #❓┊help
Enable or Disable Toggle by default when first page load
thats why im using custom schema in that grid
51 replies