Deprecate singleOrFail() in favour of sole()
This commit is contained in:
@@ -27,8 +27,6 @@ class CommBinkpSend extends Command
|
||||
*/
|
||||
protected $description = 'BINKP send';
|
||||
|
||||
private const ID = 'BINKP';
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
@@ -42,7 +40,7 @@ class CommBinkpSend extends Command
|
||||
|
||||
Log::info(sprintf('CBS:- Call BINKP send for %s',$ao->ftn));
|
||||
|
||||
$mo = Mailer::where('name',self::ID)->singleOrFail();
|
||||
$mo = Mailer::where('name','BINKP')->sole();
|
||||
|
||||
if ($this->option('now'))
|
||||
Job::dispatchSync($ao,$mo);
|
||||
|
Reference in New Issue
Block a user