Deprecate singleOrFail() in favour of sole()
This commit is contained in:
@@ -160,7 +160,7 @@ abstract class Packet extends FTNBase implements \Iterator, \Countable
|
||||
try {
|
||||
$o->zone = Zone::where('zone_id',$o->fz)
|
||||
->where('default',TRUE)
|
||||
->singleOrFail();
|
||||
->sole();
|
||||
|
||||
} catch (ModelNotFoundException $e) {
|
||||
throw new InvalidPacketException(sprintf('%s:! We couldnt work out the packet zone, and there isnt a default for[%d]',self::LOGKEY,$o->fz));
|
||||
|
Reference in New Issue
Block a user