Comments (6)
There is the Nullable
trait that handles thing (converts empty strings to NULL). I wasn't aware of this, perhaps it is a Laravel / Eloquent thing?
from userplus-plugin.
@daftspunk On youtube video explain when new field added to User table but how do it when I have relation like User->profile->phone. How I can add phone to register form and save it?
from userplus-plugin.
Watch + Learn just did a video about this.
from userplus-plugin.
@daftspunk Thank you for the update.
Fields added using $model.addFillable()
are always inserted into database and when they are not provided by user, empty string will be inserted. Is it possible to specify whether empty string or NULL
should be inserted into database for empty fields?
from userplus-plugin.
@daftspunk How can I extend the User
model and add nullable fields to it?
from userplus-plugin.
Closing as it has been over a month since any activity on this occurred.
from userplus-plugin.
Related Issues (19)
- Update to 1.0.3 does not work HOT 1
- User plus injects fields into any pop-up user related form HOT 2
- "plugins" folder inside the rainlab\userplus plugin folder with copies of both User and Location plugins? HOT 4
- I have installed user , location e userplus plugin . HOT 1
- RainLab.Notify isn't automatically installed when installing from marketplace HOT 2
- Add addressfinder widget on profile tab HOT 1
- Edit user avatar HOT 1
- doing october:down fails: Method hasColumn does not exist. HOT 1
- ear HOT 1
- When I try to extend the User form in my Plugin.php with a repeater widget using addFields() or addTabFields() this includes all fields of the User Plus form. HOT 2
- Location not updating from frontend form HOT 9
- Plugin not Shown in October 3.1 and latest User Plugin HOT 3
- Feature request: Redirect setting HOT 1
- Composer issues with 1.2.0 HOT 2
- User plus injects fields into any pop-up user related form HOT 4
- Installed successfuly but not working HOT 1
- Experience point HOT 1
- Relies on Rainlab.Location plugin, no error on install HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from userplus-plugin.