ChenWuJie il y a 4 ans
Parent
commit
384782dbf2
2 fichiers modifiés avec 8 ajouts et 9 suppressions
  1. 1 1
      app/Admin/Actions/Service/PassAction.php
  2. 7 8
      app/Models/Doctertimes.php

+ 1 - 1
app/Admin/Actions/Service/PassAction.php

xqd
@@ -13,7 +13,7 @@ class PassAction extends RowAction
     public function handle(Model $model)
     {
         Serviceapplys::where('id',$model->id)->update(['status'=>2]);
-        return $this->response()->success('Success message.')->refresh();
+        return $this->response()->success('开通成功')->refresh();
     }
 
 }

+ 7 - 8
app/Models/Doctertimes.php

xqd
@@ -1,15 +1,14 @@
 <?php
+/**
+ * Created by PhpStorm.
+ * User: zilongs
+ * Date: 20-9-29
+ * Time: 上午11:12
+ */
 
 namespace App\Models;
 
-use Illuminate\Database\Eloquent\Model;
-
-class Doctertimes extends Model
+class DocterTimes extends BaseModel
 {
-    //
-    protected $table = 'docter_times';
 
-    public function docter(){
-        return $this->hasOne(Docter::class);
-    }
 }