@@ -46,8 +46,8 @@ public function install(): void
4646 $ this ->task (
4747 'Creating resources/views folder ' ,
4848 function () {
49- if (! File::exists (base_path ( ' resources/ views ' ))) {
50- File::makeDirectory (base_path ( ' resources/ views ' ), 0755 , true , true );
49+ if (! File::exists ($ this -> app -> resourcePath ( ' views ' ))) {
50+ File::makeDirectory ($ this -> app -> resourcePath ( ' views ' ), 0755 , true , true );
5151
5252 return true ;
5353 }
@@ -59,7 +59,7 @@ function () {
5959 $ this ->task (
6060 'Creating default view configuration ' ,
6161 function () {
62- if (! File::exists (config_path ('view.php ' ))) {
62+ if (! File::exists ($ this -> app -> configPath ('view.php ' ))) {
6363 return File::copy (
6464 static ::CONFIG_FILE ,
6565 $ this ->app ->configPath ('view.php ' )
@@ -73,26 +73,26 @@ function () {
7373 $ this ->task (
7474 'Creating cache storage folder ' ,
7575 function () {
76- if (File::exists (base_path ( ' storage/ app/.gitignore ' )) &&
77- File::exists (base_path ( ' storage/ framework/views/.gitignore ' ))
76+ if (File::exists ($ this -> app -> storagePath ( ' app/.gitignore ' )) &&
77+ File::exists ($ this -> app -> storagePath ( ' framework/views/.gitignore ' ))
7878 ) {
7979 return false ;
8080 }
8181
82- if (! File::exists (base_path ( ' storage/ app ' ))) {
83- File::makeDirectory (base_path ( ' storage/ app ' ), 0755 , true , true );
82+ if (! File::exists ($ this -> app -> storagePath ( ' app ' ))) {
83+ File::makeDirectory ($ this -> app -> storagePath ( ' app ' ), 0755 , true , true );
8484 }
8585
86- if (! File::exists (base_path ( ' storage/ app/.gitignore ' ))) {
87- File::append (base_path ( ' storage/ app/.gitignore ' ), "* \n!.gitignore " );
86+ if (! File::exists ($ this -> app -> storagePath ( ' app/.gitignore ' ))) {
87+ File::append ($ this -> app -> storagePath ( ' app/.gitignore ' ), "* \n!.gitignore " );
8888 }
8989
90- if (! File::exists (base_path ( ' storage/ framework/views ' ))) {
91- File::makeDirectory (base_path ( ' storage/ framework/views ' ), 0755 , true , true );
90+ if (! File::exists ($ this -> app -> storagePath ( ' framework/views ' ))) {
91+ File::makeDirectory ($ this -> app -> storagePath ( ' framework/views ' ), 0755 , true , true );
9292 }
9393
94- if (! File::exists (base_path ( ' storage/ framework/views/.gitignore ' ))) {
95- File::append (base_path ( ' storage/ framework/views/.gitignore ' ), "* \n!.gitignore " );
94+ if (! File::exists ($ this -> app -> storagePath ( ' framework/views/.gitignore ' ))) {
95+ File::append ($ this -> app -> storagePath ( ' framework/views/.gitignore ' ), "* \n!.gitignore " );
9696 }
9797
9898 return true ;
0 commit comments