update code
This commit is contained in:
22
app/Exceptions/ActionNotFound.php
Normal file
22
app/Exceptions/ActionNotFound.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class ActionNotFound extends Exception
|
||||
{
|
||||
use \Prettus\Repository\Traits\Respondable;
|
||||
|
||||
/**
|
||||
* Render an exception into an HTTP response.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Throwable $exception
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function render($request)
|
||||
{
|
||||
return $this->respondError('Action '. $this->getMessage() .' has not been defined.', 422);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user