Fix wrong Exception being thrown
This commit is contained in:
@@ -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!'
|
||||||
|
|||||||
Reference in New Issue
Block a user