Deprecate singleOrFail() in favour of sole()

This commit is contained in:
2024-11-08 23:31:21 +11:00
parent f0f2d74a14
commit 72ad1307c5
18 changed files with 27 additions and 43 deletions

View File

@@ -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);
}