for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tofandel\Redirects\Exceptions;
use Exception;
class RedirectException extends Exception
{
/**
* The exception to be thrown when the old url is the same as the new url.
*
* @return static
*/
public static function sameUrls(): RedirectException
return new static('The old url cannot be the same as the new url!');
}