How to make the matrix element output several fields as default? #2498
AlexanderKhq
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I want to output 2 columns and 3 rows of input-type-text in the matrix element as default(after pages has loaded). I don't get how to do that. I output 2 columns and no rows as default. Can anyone help me?
I've tried this:
Matrix::make('Categories') ->title('категроии:') ->columns([ 'Раздел:' => 'wp_name', 'Ключевые слова:' => 'pattern' ])->fields([ 'wp_name' => Input::make('wp_name')->type('text'), 'pattern' => Input::make('pattern')->type('text'), 'wp_name1' => Input::make('wp_name')->type('text'), 'pattern2' => Input::make('pattern')->type('text') ]),
Beta Was this translation helpful? Give feedback.
All reactions