We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93768c4 commit 7a22de5Copy full SHA for 7a22de5
packages/support/src/Assets/Asset.php
@@ -13,15 +13,15 @@ abstract class Asset
13
14
protected string $package;
15
16
- protected ?string $path = null;
+ protected string $path = null;
17
18
- final public function __construct(string $id, ?string $path = null)
+ final public function __construct(string $id, ?string $path = '/')
19
{
20
$this->id = $id;
21
$this->path = $path;
22
}
23
24
- public static function make(string $id, ?string $path = null): static
+ public static function make(string $id, ?string $path = '/'): static
25
26
return app(static::class, ['id' => $id, 'path' => $path]);
27
0 commit comments