teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

2

文言を追記

2016/03/28 14:08

投稿

KiyoshiMotoki
KiyoshiMotoki

スコア4791

answer CHANGED
@@ -17,6 +17,12 @@
17
17
  ```
18
18
 
19
19
  リファレンスによると、
20
+ > If an exception is thrown within the transaction Closure, the transaction will automatically be rolled back.
21
+
22
+ 「もしクロージャの中から例外が投げられたら、トランザクションは自動的にロールバックされます」
23
+ と。
24
+ そして
25
+
20
26
  > Note: Using the DB facade's transaction methods also controls transactions for the query builder and Eloquent ORM.
21
27
 
22
28
  「DBファサードの`transaction`メソッドを使用すると、クエリビルダーとEloquent ORMのトランザクションを制御できる」

1

タイポを修正

2016/03/28 14:08

投稿

KiyoshiMotoki
KiyoshiMotoki

スコア4791

answer CHANGED
@@ -11,7 +11,7 @@
11
11
  }
12
12
 
13
13
  });
14
- } catch (\Exception $e) {
14
+ } catch (Exception $e) {
15
15
  return Redirect::back();
16
16
  }
17
17
  ```