feat: ✨ Upgrade a Laravel 9
This commit is contained in:
parent
f5a1f0e53d
commit
9e69c05f1a
|
@ -16,7 +16,7 @@ DB_PASSWORD=
|
||||||
|
|
||||||
BROADCAST_DRIVER=log
|
BROADCAST_DRIVER=log
|
||||||
CACHE_DRIVER=file
|
CACHE_DRIVER=file
|
||||||
FILESYSTEM_DRIVER=local
|
FILESYSTEM_DISK=local
|
||||||
QUEUE_CONNECTION=sync
|
QUEUE_CONNECTION=sync
|
||||||
SESSION_DRIVER=file
|
SESSION_DRIVER=file
|
||||||
SESSION_LIFETIME=120
|
SESSION_LIFETIME=120
|
||||||
|
|
|
@ -91,7 +91,7 @@ class PublishModulesAssets extends Command
|
||||||
->flatMap(fn($dir) => File::allFiles($dir))
|
->flatMap(fn($dir) => File::allFiles($dir))
|
||||||
->filter(fn(SplFileInfo $file) => $file->getExtension() === 'js')
|
->filter(fn(SplFileInfo $file) => $file->getExtension() === 'js')
|
||||||
->each(function (SplFileInfo $file) use ($patch_failures) {
|
->each(function (SplFileInfo $file) use ($patch_failures) {
|
||||||
$content = Str::of($file->getContents())
|
$content = str($file->getContents())
|
||||||
->replaceMatches("/from [\"']openstamanager[\"']/", "from '../../../index.js'")
|
->replaceMatches("/from [\"']openstamanager[\"']/", "from '../../../index.js'")
|
||||||
->replaceMatches(
|
->replaceMatches(
|
||||||
"/from [\"']@(?<vendor>[\w.-]+)\/(?<module>[\w.-]+)[\"']/",
|
"/from [\"']@(?<vendor>[\w.-]+)\/(?<module>[\w.-]+)[\"']/",
|
||||||
|
|
Loading…
Reference in New Issue