Deprecate singleOrFail() in favour of sole()
This commit is contained in:
@@ -30,7 +30,7 @@ class AddressIdle extends Command
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
$do = Domain::where('name',$this->argument('domain'))->singleOrFail();
|
||||
$do = Domain::where('name',$this->argument('domain'))->sole();
|
||||
|
||||
return Job::dispatchSync($do,$this->option('ftn') ? Address::findFTN($this->option('ftn')) : NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user