Fix wrong Exception being thrown

This commit is contained in:
Nabeel Shahzad
2018-02-22 09:41:23 -06:00
parent 7b68642fa3
commit 5d2ef3a9d3

View File

@@ -12,7 +12,6 @@ use App\Services\GeoService;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Auth;
use Log; use Log;
use Mockery\Exception;
use Prettus\Repository\Exceptions\RepositoryException; use Prettus\Repository\Exceptions\RepositoryException;
class FlightController extends Controller class FlightController extends Controller
@@ -121,7 +120,7 @@ class FlightController extends Controller
try { try {
$uf = UserBid::where($cols)->first(); $uf = UserBid::where($cols)->first();
$uf->delete(); $uf->delete();
} catch (Exception $e) { } } catch (\Exception $e) { }
return response()->json([ return response()->json([
'message' => 'Deleted!' 'message' => 'Deleted!'