Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 97c0008

Browse files
committed
Enforce latest composer package versions
1 parent 2535a76 commit 97c0008

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Traits/ConsoleTools.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ trait ConsoleTools
1111
*
1212
* @return void
1313
*/
14-
protected function publishesMigrations(string $package): void
14+
protected function publishesMigrations(string $package, bool $isModule = false): void
1515
{
1616
$namespace = str_replace('laravel-', '', $package);
1717
$namespace = str_replace(['/', '\\', '.', '_'], '-', $namespace);
18-
$basePath = starts_with($package, 'cortex') ? $this->app->path($package)
18+
$basePath = $isModule ? $this->app->path($package)
1919
: $this->app->basePath('vendor/'.$package);
2020

2121
if (file_exists($path = $basePath.'/database/migrations')) {
@@ -40,11 +40,11 @@ protected function publishesMigrations(string $package): void
4040
*
4141
* @return void
4242
*/
43-
protected function publishesConfig(string $package): void
43+
protected function publishesConfig(string $package, bool $isModule = false): void
4444
{
4545
$namespace = str_replace('laravel-', '', $package);
4646
$namespace = str_replace(['/', '\\', '.', '_'], '-', $namespace);
47-
$basePath = starts_with($package, 'cortex') ? $this->app->path($package)
47+
$basePath = $isModule ? $this->app->path($package)
4848
: $this->app->basePath('vendor/'.$package);
4949

5050
if (file_exists($path = $basePath.'/config/config.php')) {
@@ -57,11 +57,11 @@ protected function publishesConfig(string $package): void
5757
*
5858
* @return void
5959
*/
60-
protected function publishesViews(string $package): void
60+
protected function publishesViews(string $package, bool $isModule = false): void
6161
{
6262
$namespace = str_replace('laravel-', '', $package);
6363
$namespace = str_replace(['/', '\\', '.', '_'], '-', $namespace);
64-
$basePath = starts_with($package, 'cortex') ? $this->app->path($package)
64+
$basePath = $isModule ? $this->app->path($package)
6565
: $this->app->basePath('vendor/'.$package);
6666

6767
if (file_exists($path = $basePath.'/resources/views')) {
@@ -74,11 +74,11 @@ protected function publishesViews(string $package): void
7474
*
7575
* @return void
7676
*/
77-
protected function publishesLang(string $package): void
77+
protected function publishesLang(string $package, bool $isModule = false): void
7878
{
7979
$namespace = str_replace('laravel-', '', $package);
8080
$namespace = str_replace(['/', '\\', '.', '_'], '-', $namespace);
81-
$basePath = starts_with($package, 'cortex') ? $this->app->path($package)
81+
$basePath = $isModule ? $this->app->path($package)
8282
: $this->app->basePath('vendor/'.$package);
8383

8484
if (file_exists($path = $basePath.'/resources/lang')) {

0 commit comments

Comments
 (0)