回答編集履歴
2
修正
test
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
sakura_hanaさんにアドバイスを頂き、withErrorsメソッドが存在しているオブジェクトを特定することができました。
|
2
2
|
|
3
|
-
redirect('post/create')の返り値が、RedirectResponseオブジェクトだった為、method_existsにて、```$a = redirect('/post/create');var_dump(method_exists($a, 'withErrors'));```こちらのように検証してみましたらtrueとなった為、withErrorsがRedirectResponseオブジェクトに存在しているこが、確認できました。
|
3
|
+
redirect('post/create')の返り値が、RedirectResponseオブジェクトだった為、method_existsにて、```$a = redirect('/post/create');var_dump(method_exists($a, 'withErrors'));```こちらのように検証してみましたらtrueとなった為、withErrorsがRedirectResponseオブジェクトに存在していることが、確認できました。
|
1
修正
test
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
sakura_hanaさんにアドバイスを頂き、withErrorsメソッドが存在しているオブジェクトを特定することができました。
|
2
2
|
|
3
|
-
redirect('post/create')の返り値が、RedirectResponseオブジェクトだった為、method_existsにて、```$a = redirect('/post/create');var_dump(method_exists($a, 'withErrors'));```こちらのように検証してみましたらtrueとなった為、withErrorsがRedirectResponseオブジェクトに存在しているこが確認できました。
|
3
|
+
redirect('post/create')の返り値が、RedirectResponseオブジェクトだった為、method_existsにて、```$a = redirect('/post/create');var_dump(method_exists($a, 'withErrors'));```こちらのように検証してみましたらtrueとなった為、withErrorsがRedirectResponseオブジェクトに存在しているこが、確認できました。
|