Skip to content

保存時出現 Class name must be a valid object or a string? #9

@sky9413

Description

@sky9413

Class name must be a valid object or a string

我數據庫名欄位就是叫sort int(6)

//App/Models/xxx.php
public $sortable = [
        'order_column_name' => 'sort',
        'sort_when_creating' => true,
    ];

在admin 的相關Controller 中grid() 加入了 $grid->sortable();

但還是報這個錯

可以拖動,也沒報錯,只有按下保存的那一刻才報錯

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions