Skip to content

Commit

Permalink
Merge pull request #4 from cleaniquecoders/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
nasrulhazim authored Feb 10, 2023
2 parents 00e796f + a990af1 commit c4b213d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/LookupServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function boot(Filesystem $filesystem)
], 'lookup-migrations');

$this->publishes([
__DIR__.'/../database/seeders/LookupSeeder.php.stub' => $this->app->databasePath().'/seeders/LookupSeeder.php',
__DIR__.'/../stubs/LookupSeeder.stub' => $this->app->databasePath().'/seeders/LookupSeeder.php',
], 'lookup-seeder');

$this->publishes([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;

class LookupSeeder extends Seeder
Expand All @@ -15,9 +14,7 @@ class LookupSeeder extends Seeder
*/
public function run()
{
$content = file_get_contents(
json_decode(config('lookup.seeder'))
);
$content = json_decode(file_get_contents(config('lookup.seeder')), JSON_OBJECT_AS_ARRAY);

foreach($content as $lookup) {
$lookup['uuid'] = Str::uuid()->toString();
Expand Down

0 comments on commit c4b213d

Please sign in to comment.