Jamie Cee
Policies for ManageRelatedRecords only
So in my Model, I have a class that extends ManageRelatedRecords, and is for managing users under that model.
I only want to allow the attaching and detaching under that Model, but still hiding access to users as a whole navigation, which I cant do, even when in the Manager class, I define the canViewAny method
3 replies
MorphToMany Select Relationship
Im getting completely frazzled with MorphToMany setup in a select instance.
I have a User that Morphs to Many Organisation and Product. Im trying to merge the items into a single Select, and I have it working, except when trying to edit a user, I cant get it to show the already existing records as already selected values.
I found this function
I can get the array of ids, but im not sure what im missing at displaying them as the selected values
5 replies
Loading indicator on a custom action with alpineClickHandler
My action process is ran with alpinejs component rather than a submit action
But I want to display a loading indicator while it goes through the flow, but cant seem to find a way to show the indicator.
The blade is rendering just with
```php
{{$this->securityKeyAction}} rather than blade components for the button etc
6 replies
Struggling to find how to trigger a loader
So I want to trigger a loader when I press a toggle button and the state is true. But I cant seem to find anywhere on what the target must be set. Calling a function name doesn't seem to be working, nor a variable name?
7 replies
Feedback on FullCalendar Plugin
Just initially looking into available plugins for a use case that would be a booking system with calendar integration to select available slots with particular instructors.
Has anyone had similar exposure to the FullCalendar with a similar use case? And able to share your experience with it, was there any complications etc
8 replies
Laracasts Alpine code in an action
Im following a guide on laracasts and im at a point for it has a form component, and has attributes for: x-data, x-on:submit.prevent.
I am wondering if I can use a custom action to call the alpinejs function from my app.js file, rather than creating a new blade file etc
Bit lost trying to find this in the docs?
41 replies
Not authenticating on login
Not sure what step im missing...
When I go to my login page, and login. It just redirects straight back to the login page.
If I go to the Authenticate middleware, and dump out $guard = Filament::auth(); it returns false... Not sure why?
4 replies
Reactive filter updating
So on my custom page, where I have a filtersForm.
Its generated with:
I want project to update live with my data when client changes.
So for example, I select client 1, and select project 1 (as that belongs to client 1).
If I then change to Client 2, I need Project 1 to reset when it changes, so I can also populate the infolist live, being returned.
5 replies
Page Filters with InfoLists not working
I have a lot going on here and not too sure whats causing what.
So currently happening: I can change a filter and the response will update, but if I remove the filter back to "select a x". The data goes blank, I want this to reset that filter and display all data as normal (well, minus that filter I just removed).
Is it possible to get the table style filters instead, that may be easier?
9 replies
Paginated InfoLists
Is it possible to paginate info lists?
I have a custom page with an infolist just to collect a collection of data from multiple relations into something readable, but there may be many records, so want to implement pagination into it.
4 replies
Live notifications
Im a little confused how notifications are working. So I've setup and installed pusher and echo etc.
This is my notification
I have a queue:listen going, I can see the BroadcastNotificationCreated event, I can see in my pusher dashboard, the channel message come through and tells me the format is filament etc. But no notification comes through while im on my admin panel. What am I missing?
5 replies