Amitoj
How come filename include the directory
I have same concern, I only want to save filename in the database regardless in which directory the file goes.
Do you think it make sense to use laravel's model accessor to change the value when saving and accessing:
This seems to be working, but can someone confirm if it is reliable for filament or if there is better approach?
75 replies
HasOne relationship not updating foreignKey in parent model
You are right, Thanks you fixed the issue, I am sorry that the parameters had me confused. In
hasOne
relationship, foreign_key
is actually supposed to be parent's id column in child entity, which in my case would be project_id
(or no need to mention as you said). I thought I would only need the project_id
column in belongsTo
relation because it would save me a column. Now I removed attachment_id
because its no longer in use.9 replies
Distorted Menu Button & Modals
It makes sense that it is happening because of lack of files generated by npm build, I have question, is there any other way around to copy the generated files from local machine to the host as the host cannot have nodejs at all. I attempted to copy the
node_modules
and public/build
directories but I dont think it worked.26 replies