14 lines
293 B
PHP
14 lines
293 B
PHP
<?php
|
|
|
|
namespace Spatie\LaravelPackageTools\Exceptions;
|
|
|
|
use Exception;
|
|
|
|
class InvalidPackage extends Exception
|
|
{
|
|
public static function nameIsRequired(): self
|
|
{
|
|
return new static('This package does not have a name. You can set one with `$package->name("yourName")`');
|
|
}
|
|
}
|