<?php

namespace App\Admin\Actions\backstage\User;

use App\Models\Patient;
use Encore\Admin\Actions\RowAction;
use Illuminate\Database\Eloquent\Model;

class archives extends RowAction
{
    public $name = '查看患者档案';

    public function handle(Model $model)
    {
        // $model ...
        return $this->response()->success('跳转档案库成功')->redirect('/admin/user_patients?user_id='.$this->row->id.'');
    }

}