update code

This commit is contained in:
manhlab
2021-04-07 06:32:42 -04:00
parent 7fb98911a6
commit a4753625f6
779 changed files with 335717 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Exceptions;
use Exception;
class RelationIdsNotAllow 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 id "'. $this->getMessage() .'" not allow.', 405);
}
}