Luiz
Is possible to create page with dynamic sub pages?
I want to create a page with a list that works like google drive. In this page there are files to download or a folder to access more files. How can I create a with the page builder with this kind of dynamic url?
Route examples
3 replies
Custom page with custom permissions
I created a custom page and now I need to block this page access using the
spatie permission
package. But I did not find where I can block this page navigation nor hide it from the navigation menu like resources. I explored the source and didn't see any reference to this functionality4 replies
Form Tabs not saving the correct relationship content.
So I have a form that has an Tab that handles the translation of some fields, like
title
and description
of a model. What is happening is that for now the app has 3 basic languages, more will be add later. To make this possible every translatable model has an i18n table counterpart. This i18n has one column per translatable property of the model together with the composite primary key model_id
and locale
, here is an example:
The example above shows that Model
will not have title
and description
fields. It will be saved on the i18n one with their respective locale, en_CA
, fr_CA
and etc.
I built and trait that helps getting the correct model with above structure. Trait
What happens is that the correct values are shown, but when I press the save button, the current visible Tab
overwrites all others locales. So if a save when en_CA
tab is visible, the tab holding the values for fr_CA
will be overwritten.
Here is an simplified code of how Tabs
was built:
2 replies