Josh777
Josh777
FFilament
Created by Josh777 on 11/24/2023 in #❓┊help
Why Select field does not save as null when no options exist i.e. only placeholder
I have set up a demo repo here if anyone would like to have a go at recreating: https://github.com/joshembling/filament-select-bug
9 replies
FFilament
Created by Josh777 on 11/1/2023 in #❓┊help
ViewColumn does not open modal with Modal Blade component
10 replies
FFilament
Created by Josh777 on 11/1/2023 in #❓┊help
ViewColumn does not open modal with Modal Blade component
Rendering this would be a start
<script>
console.log('here') // this is ignored

function test() {
console.log('hello world') // never gets called
}
</script>

<button onclick="test">Click!</button>
<script>
console.log('here') // this is ignored

function test() {
console.log('hello world') // never gets called
}
</script>

<button onclick="test">Click!</button>
10 replies
FFilament
Created by Josh777 on 11/1/2023 in #❓┊help
ViewColumn does not open modal with Modal Blade component
Hi @toeknee, can you give me a bit more detail on your first suggestion? The second suggestion doesn't work because of what I mentioned in the second half of my question, js does not ever execute in a filament modal
10 replies
FFilament
Created by LancelotGamer on 11/1/2023 in #❓┊help
How can I throw an exception and send a notification in handleRecordCreation() method
Do you have more context?
8 replies
FFilament
Created by LancelotGamer on 11/1/2023 in #❓┊help
How can I throw an exception and send a notification in handleRecordCreation() method
Then you will probably want to try this in an Observer class instead, using creating / create methods
8 replies
FFilament
Created by LancelotGamer on 11/1/2023 in #❓┊help
How can I throw an exception and send a notification in handleRecordCreation() method
You are not returning an instance of the Model outside of the try
8 replies
FFilament
Created by Josh777 on 10/26/2023 in #❓┊help
Queue FileUpload(s) for large data (videos/images)
Hey @Ricardo Sawir, I've been doing some digging and came across your PR https://github.com/filamentphp/filament/pull/7036 Looks really good! Are you still waiting on this Livewire PR to be merged before proceeding? https://github.com/livewire/livewire/pull/5959
6 replies
FFilament
Created by Mark Chaney on 9/6/2023 in #❓┊help
Spatie Media Library Conversions
Should you want a simple solution: https://github.com/joshembling/image-optimizer
39 replies
FFilament
Created by Connor on 10/9/2023 in #❓┊help
ResourceManager not using new field names. (QueryException)
What about the relationship, have you updated the model refs?
7 replies
FFilament
Created by Josh777 on 7/27/2023 in #❓┊help
How to pass custom data to view from Custom Field?
Bump
4 replies
FFilament
Created by Josh777 on 7/27/2023 in #❓┊help
How to pass custom data to view from Custom Field?
FYI, this is the basis of my view
<x-dynamic-component
:component="$getFieldWrapperView()"
:id="$getId()"
{{--:label="$getLabel()"--}}
:label-sr-only="$isLabelHidden()"
:helper-text="$getHelperText()"
:hint="$getHint()"
:hint-action="$getHintAction()"
:hint-color="$getHintColor()"
:hint-icon="$getHintIcon()"
:required="$isRequired()"
:state-path="$getStatePath()"
>
<div x-data="{ state: $wire.entangle('{{ $getStatePath() }}').defer }">
<div x-data="{ toggled: false }" class='flex flex-col space-y-4'>
<h1 class="font-bold">{{ $getLabel() }}</h1>
<template x-for="(item, index) in state">
etc...
<x-dynamic-component
:component="$getFieldWrapperView()"
:id="$getId()"
{{--:label="$getLabel()"--}}
:label-sr-only="$isLabelHidden()"
:helper-text="$getHelperText()"
:hint="$getHint()"
:hint-action="$getHintAction()"
:hint-color="$getHintColor()"
:hint-icon="$getHintIcon()"
:required="$isRequired()"
:state-path="$getStatePath()"
>
<div x-data="{ state: $wire.entangle('{{ $getStatePath() }}').defer }">
<div x-data="{ toggled: false }" class='flex flex-col space-y-4'>
<h1 class="font-bold">{{ $getLabel() }}</h1>
<template x-for="(item, index) in state">
etc...
And this works perfectly when rendering for example a json field on my Device model. I need this to also grab data from a specific pivot model.
4 replies
FFilament
Created by Josh777 on 7/11/2023 in #❓┊help
Hide all resources depending on user
Yeah that's essentially describing a policy though, which is what I was aiming to avoid, but think I'll just bite the bullet for now
12 replies
FFilament
Created by Josh777 on 7/11/2023 in #❓┊help
Hide all resources depending on user
@benshawuk I still want them to be able to login and access the dashboard
12 replies
FFilament
Created by Josh777 on 7/11/2023 in #❓┊help
Hide all resources depending on user
Wouldn't I have to repeat the same logic on every resource though?
12 replies