Deprecate singleOrFail() in favour of sole()
This commit is contained in:
@@ -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