for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\MailableTest\Exceptions;
use Exception;
use Illuminate\Database\Eloquent\Model;
class CouldNotDetermineValue extends Exception
{
public static function create($argumentType, $argumentName, Exception $exception)
return new static("Could not determine a value of type `{$argumentType}` for argument with name `{$argumentName}`", null, $exception);
}
public static function noModelInstanceFound(Model $model)
$className = get_class($model);
return new static("Could not get a model for class `$className`");