RequiresDatabase
final class RequiresDatabase implements Actionable
Skips the test if the required database driver is not configured.
Properties
| bool|null | $default | Determine if currently the default connection. |
Methods
__construct(array|string $driver, string|null $versionRequirement = null, string|null $connection = null, bool|null $default = null)
Construct a new attribute.
mixed
Details
at line 35
__construct(array|string $driver, string|null $versionRequirement = null, string|null $connection = null, bool|null $default = null)
Construct a new attribute.
at line 57
mixed
handle(Application $app, Closure $action)
Handle the attribute.