Laravel Handle QueryException
try {
$this->model->create($data);
} catch (Illuminate\Database\QueryException $e) {
dd($e);
} catch (PDOException $e) {
dd($e);
}
Unsightly Unicorn