Answers for "laravel has best error handling"

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
1

how to hide error in laravel

Go inside env file :
	APP_DEBUG=true
  
if you didn't find it go to config/app.php :
	'debug' => false,
Posted by: Guest on April-15-2020

Browse Popular Code Answers by Language