Deprecate singleOrFail() in favour of sole()
This commit is contained in:
@@ -144,8 +144,8 @@ class NodelistImport implements ShouldQueue
|
||||
return;
|
||||
}
|
||||
|
||||
$mailer_binkp = Mailer::where('name','BINKP')->singleOrFail();
|
||||
$mailer_emsi = Mailer::where('name','EMSI')->singleOrFail();
|
||||
$mailer_binkp = Mailer::where('name','BINKP')->sole();
|
||||
$mailer_emsi = Mailer::where('name','EMSI')->sole();
|
||||
|
||||
$p = $c = 0;
|
||||
|
||||
|
@@ -34,7 +34,7 @@ class TicProcess implements ShouldQueue
|
||||
*/
|
||||
public function __construct(private string $file,private ?string $domain=NULL)
|
||||
{
|
||||
$this->do = $domain ? Domain::where('name',$domain)->singleOrFail() : NULL;
|
||||
$this->do = $domain ? Domain::where('name',$domain)->sole() : NULL;
|
||||
|
||||
$this->onQueue(self::QUEUE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user