Forum Lumen custom exception in lumen
hi . how i can make custom exception ? i use this but not work
<?php namespace App\Exceptions; use Exception; class RobotException extends Exception { public function render() { return response(['error' => 'my error msg'], 422); } }
$router->get('/', function () use ($router) { throw new \App\Exceptions\RobotException(); });
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop for days upon days, and still not see everything!
Get Started
custom exception in lumen
hi . how i can make custom exception ? i use this but not work