コード例 #1
0
 /**
  * @param $id
  *
  * @return mixed
  * @throws \Exception
  */
 protected function destroy($id)
 {
     $this->modelInstance = $this->modelInstance->withTrashed()->findOrFail($id);
     if ($this->modelInstance->trashed()) {
         return $this->modelInstance->forceDelete();
     }
     return $this->modelInstance->delete();
 }
コード例 #2
0
ファイル: Logins.php プロジェクト: a3gz/AppTemplate-SB2
 /**
  *
  */
 public function tableName()
 {
     return 'auth_' . parent::tableName();
 }