20 lines
372 B
PHP
20 lines
372 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Exceptions;
|
||
|
|
||
|
use Exception;
|
||
|
|
||
|
class EmailTakenException extends Exception
|
||
|
{
|
||
|
/**
|
||
|
* Render the exception as an HTTP response.
|
||
|
*
|
||
|
* @param \Illuminate\Http\Request $request
|
||
|
* @return \Illuminate\Http\Response
|
||
|
*/
|
||
|
public function render($request)
|
||
|
{
|
||
|
return response()->view('oauth.emailTaken', [], 400);
|
||
|
}
|
||
|
}
|