handle Illuminate\Database\QueryException code example Example: Illuminate\Database\QueryException php artisan config:cache