Initial commit
This commit is contained in:
19
app/Exceptions/EmailTakenException.php
Normal file
19
app/Exceptions/EmailTakenException.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user