修改创建消息BUG
parent
a088378c84
commit
2678664079
|
|
@ -18,9 +18,8 @@ class MessageController extends AdminController
|
|||
*/
|
||||
protected function grid()
|
||||
{
|
||||
$builder = new Message();
|
||||
return Grid::make($builder, function (Grid $grid) {
|
||||
$grid->model()->where('user_id', 0);
|
||||
return Grid::make(new Message(), function (Grid $grid) {
|
||||
$grid->model()->where('user_id', '=', 0);
|
||||
$grid->column('id')->sortable();
|
||||
$grid->column('title');
|
||||
$grid->column('content');
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class Message extends Model
|
|||
];
|
||||
|
||||
protected $fillable = [
|
||||
'title', 'content', 'type', 'ext', 'jump_type', 'jump_link',
|
||||
'title', 'content', 'type', 'ext', 'jump_type', 'jump_link', 'user_id',
|
||||
];
|
||||
|
||||
public function logs()
|
||||
|
|
|
|||
Loading…
Reference in New Issue