Server IP : 66.29.132.124 / Your IP : 3.140.188.174 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/vendor/laravel/fortify/src/Http/Responses/ |
Upload File : |
<?php namespace Laravel\Fortify\Http\Responses; use Illuminate\Http\JsonResponse; use Laravel\Fortify\Contracts\PasswordResetResponse as PasswordResetResponseContract; use Laravel\Fortify\Fortify; class PasswordResetResponse implements PasswordResetResponseContract { /** * The response status language key. * * @var string */ protected $status; /** * Create a new response instance. * * @param string $status * @return void */ public function __construct(string $status) { $this->status = $status; } /** * Create an HTTP response that represents the object. * * @param \Illuminate\Http\Request $request * @return \Symfony\Component\HttpFoundation\Response */ public function toResponse($request) { return $request->wantsJson() ? new JsonResponse(['message' => trans($this->status)], 200) : redirect(Fortify::redirects('password-reset', route('login')))->with('status', trans($this->status)); } }