Skip to content

Commit

Permalink
Fix InstallCommand.php (#55)
Browse files Browse the repository at this point in the history
* Fix InstallCommand.php

On windows, the Services Providers was not added to the app.php file.

After some tests I realized that it would be enough to remove the PHP_EOL tag.

* Fix InstallCommand.php

* Fix InstallCommand.php
  • Loading branch information
dleicam committed Sep 8, 2020
1 parent 1782025 commit f31d5d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ protected function installFortifyServiceProvider()
{
if (! Str::contains($appConfig = file_get_contents(config_path('app.php')), 'App\\Providers\\FortifyServiceProvider::class')) {
file_put_contents(config_path('app.php'), str_replace(
"App\\Providers\RouteServiceProvider::class,".PHP_EOL,
"App\\Providers\RouteServiceProvider::class,".PHP_EOL." App\Providers\FortifyServiceProvider::class,".PHP_EOL,
"App\\Providers\RouteServiceProvider::class,",
"App\\Providers\RouteServiceProvider::class,".PHP_EOL." App\Providers\FortifyServiceProvider::class,",
$appConfig
));
}
Expand Down Expand Up @@ -433,8 +433,8 @@ protected function installJetstreamServiceProvider()
{
if (! Str::contains($appConfig = file_get_contents(config_path('app.php')), 'App\\Providers\\JetstreamServiceProvider::class')) {
file_put_contents(config_path('app.php'), str_replace(
"App\\Providers\FortifyServiceProvider::class,".PHP_EOL,
"App\\Providers\FortifyServiceProvider::class,".PHP_EOL." App\Providers\JetstreamServiceProvider::class,".PHP_EOL,
"App\\Providers\FortifyServiceProvider::class,",
"App\\Providers\FortifyServiceProvider::class,".PHP_EOL." App\Providers\JetstreamServiceProvider::class,",
$appConfig
));
}
Expand Down

0 comments on commit f31d5d2

Please sign in to comment.