-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store data model #20
Comments
hey.. let say this your code: Matrix::make('question')
->label('Tell us about your mod') in your database you have a column protected $casts = [
'question' => 'array',
]; then the "selected" values will be stored as json on the column |
thks, and whats your recommended method for setting column and row data with model data? thks |
OK I used this ->columnData( FixProduct::orderBy('title')->get()->pluck( 'title')->toArray()) and I get a nice json, how can I decode this ? isometimes I have true, true, true, sometimes Ids...
|
can you share the output of: dd(
FixProduct::orderBy('title')->get()->pluck( 'title')->toArray(),
FixCAtegory::orderBy('title')->get()->pluck( 'title')->toArray()
); so I can test. |
Hi, probably a beginner question but how do you link you rMatrix to a Model to store and retrieve data ? thks
The text was updated successfully, but these errors were encountered: