Skip to content

Commit

Permalink
laravel 8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dipeshsukhia committed Apr 25, 2021
1 parent d77d9e7 commit 113c331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/LaravelCountryStateCityDataServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function boot()
$seederNameSpace = "";
}else{
$seedDir = database_path('seeders');
$seederNameSpace = "namespace Database\\Seeders";
$seederNameSpace = "namespace Database\\Seeders;\n";
}
$seederTemplate = self::getStubContents('CountryStateCityTableSeeder.stub');
$seederTemplate = str_replace('{{seederNameSpace}}', $seederNameSpace, $seederTemplate);
Expand Down
3 changes: 1 addition & 2 deletions src/resources/stubs/CountryStateCityTableSeeder.stub
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
{{seederNameSpace}};

{{seederNameSpace}}
use Illuminate\Database\Seeder;
use App{{modelNameSpace}}\Country;
use App{{modelNameSpace}}\State;
Expand Down

0 comments on commit 113c331

Please sign in to comment.