mirror of
https://github.com/koel/koel
synced 2025-01-01 15:28:43 +00:00
16 lines
338 B
PHP
16 lines
338 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Exceptions;
|
||
|
|
||
|
use App\Models\Podcast\Podcast;
|
||
|
use App\Models\User;
|
||
|
use Exception;
|
||
|
|
||
|
final class UserAlreadySubscribedToPodcast extends Exception
|
||
|
{
|
||
|
public static function make(User $user, Podcast $podcast): self
|
||
|
{
|
||
|
return new self("User $user->id has already subscribed to podcast $podcast->id");
|
||
|
}
|
||
|
}
|