Laravel-admin: editable works only with defined form

Created on 19 Feb 2017  ·  2Comments  ·  Source: z-song/laravel-admin

Hello,

why editable works only if we have defined all fields in form()

 protected function grid()
    {
        return Admin::grid(UplinkchannelsModel::class, function (Grid $grid) {

            $grid->Name()->sortable()->editable();
            });
    }

  protected function form()
    {
        return Admin::form(UplinkchannelsModel::class, function (Form $form) {
$form->text('Name','Name')->rules('required');
    });
    }

e.g. first I decided to make editable field and with every editing nothing was saved to database, then I decided to add form field to be able to "edit" with action button, after that "editable" started to work normally as usual...

can you please check?

thank you!

Most helpful comment

Wish you can point out that in doc, I got this problem solved until I find this post.

All 2 comments

The resource controller uses form to handle data saving.

Wish you can point out that in doc, I got this problem solved until I find this post.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

evans-kim picture evans-kim  ·  3Comments

abufalbo picture abufalbo  ·  3Comments

piian picture piian  ·  3Comments

antranapp picture antranapp  ·  3Comments

amun1303 picture amun1303  ·  3Comments