Answers for "Illuminate\Database\Eloquent\ dengan try catch"

PHP
0

laravel handle queryexception

try {
  $this->model->create($data);

} catch (Illuminate\Database\QueryException $e) {
  dd($e);

} catch (PDOException $e) {
  dd($e);
}
Posted by: Guest on April-17-2020

Code answers related to "Illuminate\Database\Eloquent\ dengan try catch"

Browse Popular Code Answers by Language