<?php

namespace App\Admin\Actions\Serve;

use Encore\Admin\Actions\RowAction;
use Illuminate\Database\Eloquent\Model;

class Addmember extends RowAction
{
    public $name = '添加成员';

//    public function form(){
//       TeamDocter::insert();
//      $this->multipleSelect('member', '成员选择')->options(function ($ids) {
//           return Docter::where('is_then', 1)->pluck('name', 'id');
//       });
//    }
    public function handle(Model $model)
    {
        // $request ...
//        TeamDocter::insert();
        return $this->response()->success('跳转成功成功')->redirect('/admin/team_docter?team_id='.$this->row->id.'');
    }
}
