Closed syofyanzuhad closed 6 months ago
Hii, sorry. Your report says you're on v3, and I have limited time available, so I can't help with an unsupported version. Have you tried upgrading to v4? It's a mostly automated process. https://scribe.knuckles.wtf/laravel/migrating-v4
Scribe version
^3.33
PHP version
8.2
Framework
Laravel
Framework version
9.52.16
Scribe config
What happened?
I ran php artisan scribe:generate on windows and it return this error: ⓘ Writing Blade docs...
ErrorException
rename(public/docs/,C:\laragon\www\seeder-test\public/vendor/scribe): Access is denied (code: 5)
at C:\laragon\www\seeder-test\vendor\knuckleswtf\scribe\src\Writing\Writer.php:175 171▕ 172▕ // Move assets from public/docs to public/vendor/scribe or config('laravel.assets_directory') 173▕ // We need to do this delete first, otherwise move won't work if folder exists 174▕ Utils::deleteDirectoryAndContents($publicDirectory . $this->laravelAssetsPath); ➜ 175▕ rename("{$this->staticTypeOutputPath}/", $publicDirectory . $this->laravelAssetsPath); 176▕ 177▕ $contents = file_get_contents("$this->laravelTypeOutputPath/index.blade.php"); 178▕ 179▕ // Rewrite asset links to go through Laravel
1 C:\laragon\www\seeder-test\vendor\knuckleswtf\scribe\src\Writing\Writer.php:175 rename("public/docs/", "C:\laragon\www\seeder-test\public/vendor/scribe")
2 C:\laragon\www\seeder-test\vendor\knuckleswtf\scribe\src\Writing\Writer.php:198 Knuckles\Scribe\Writing\Writer::performFinalTasksForLaravelType()
Docs