Schilly
Select Column Saving
Having an issue where on my production server (Forge) for 1 specific relationship management page, it will not save any fields...
I have a resource setup as follows (attached) - and it does not work... Whereas another resource, with the same setup just a different relationship - it does not work.
I am getting no error messages to speak of - and the payload in the console seems to be going through... But it is not saving.
2 replies
Import Action - "unknown column '' in `where clause` "
Hello - I am trying to get this importer to behave... I am using it to import records into a Relationship Pivot Table.
The relationship is a belongsToMany relationship - and knowing that it will not play nice on that end, I have made up a Pivot Model to interact with. Here is the pivot model:
To go along with the pivot model - I ahve made up the Importer, as follows: The problem I am having is - the importer is throwing an error as follows: But the "warehouse_id" is 100% being set in the firstOrNew method... Thoughts?
7 replies
DateTimePicker 24-Hour Clock
Greetings - I am trying to utilize the date-time-picker but looking to use a 24hr clock rather than AM/PM - is there any functionality to change this? I cannot find anything in the docs anywhere to indicate this as being an option.
Thanks!
2 replies
Text Column Badge Color based on Pivot attribute
Hello,
I am trying to define a badge color based on the value of a pivot attribute.
For example:
- User
belongsToMany
Squadrons and the Squadrons belongsToMany
Users - both withPivot('is_primary')
.
I am hoping to change the badge color based on the Boolean is_primary
- I cannot for the life of me figure out how to get it to dynamically change based on the pivot Boolean.
Thoughts?100 replies
dynamic Use $class;
I am working on making a plugin / module / whatever you want to call it...
I am curious to know if it is possible to dynamically call a model name based off a config value.
EG: config value is:
USER_MODEL = "\App\Model\User"
and in the model class I want to be able to dynamically set that for the:
Use $user_model;
part at the top..
I am not sure if this is even possible or not?12 replies