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.
2 parents 13f58e8 + 8746be4 commit 67229b3Copy full SHA for 67229b3
packages/framework/src/Framework/Concerns/ValidatesExistence.php
@@ -19,10 +19,10 @@ trait ValidatesExistence
19
*
20
* @throws FileNotFoundException If the file does not exist.
21
*/
22
- public function validateExistence(string $model, string $slug): void
+ public static function validateExistence(string $model, string $identifier): void
23
{
24
/** @var \Hyde\Pages\Concerns\HydePage $model */
25
- $filepath = $model::sourcePath($slug);
+ $filepath = $model::sourcePath($identifier);
26
27
if (! file_exists(Hyde::path($filepath))) {
28
throw new FileNotFoundException($filepath);
0 commit comments