'how to redirect to view with user data after logout using larravel
I'm working on an exams app using Laravel And the tester upon completion of the test must be logged out programmatically and redirected after logging out to display the test result
Solution 1:[1]
At the top of your controller...
use Auth;
Then in your function...
Auth::logout();
return redirect()->route('testresults.show')->with([ 'results' => $results ]);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
