Files
Document-Management-System-…/app/Exceptions/RelationNotAllow.php
2021-04-07 06:32:42 -04:00

23 lines
491 B
PHP

<?php
namespace App\Exceptions;
use Exception;
class RelationNotAllow 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('The relation "'. $this->getMessage() .'" not allow.', 405);
}
}