Gunnolfson
Change resource ID for FileUpload form field
If this can help you, this is the repo: https://github.com/AlexandreGerault/mei-laravel (and the school resource for example, using the FileUpload input https://github.com/AlexandreGerault/mei-laravel/blob/refactor/ulid-primary-keys/src/Admin/Resources/SchoolResource.php#L75)
9 replies
Change resource ID for FileUpload form field
Same, I don't understand how the identifier of the resource is related to the file upload and I don't really know how to look for (in the file upload file I guess, but didn't figure out what was going on)
The 404 is trigerred right on the page load: it loads, I see the form, and a 404 popup opens immediatly.
Not sure it helps you 😅
9 replies
Binary Ulids
Disabling the cast allows me to log in successfully but I get this error. So the login fails if I enable the cast on ulid.
Now that I'm logged in, I can enable the cast again, and it displays correctly the table, but every resource page (edit/detail) fails with a 404 :/
3 replies
Relation manager with intermediate relationship
I indeed actually solved it using a view like so:
This way I can simulate a
School::belongsToMany(Course::class, 'course_slug')
behavior 👍
I guess I just miss the associate/dissociate features as a view is readonly, but it should be ok for us
Thanks for your help 🙏17 replies
Relation manager with intermediate relationship
This morning you inspired me a solution based on a view, adding the school ID on the course, creating a dedicated
CourseSchool
model just for the table. I guess then I can override the urls for the actions 🤔 (to actually use the Course
model)17 replies
Relation manager with intermediate relationship
Hmm ok I see the attaching actions. I've found out that there is indeed the
getTableQuery
method, which is possible to override. However I don't see how it's possible to write it 😅 Is there a specific way to get the query builder as I don't have a relationship? Or should I give the specialisms
relationship, serving as a start point? 🤔17 replies