-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ffa3964
commit 5a63e5e
Showing
6 changed files
with
20 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
|
||
use Illuminate\Support\Str; | ||
use Illuminate\Database\Seeder; | ||
use App\Services\CreateMinioUser; | ||
use Illuminate\Support\Facades\Crypt; | ||
use Illuminate\Database\Console\Seeds\WithoutModelEvents; | ||
|
||
|
@@ -21,10 +20,6 @@ public function run(): void | |
return; | ||
} | ||
|
||
$s3_credentials = (new CreateMinioUser())->create(); | ||
$s3_credentials['secretkey'] = Crypt::encrypt($s3_credentials['secretkey']); | ||
$s3_credentials['accesskey'] = Crypt::encrypt($s3_credentials['accesskey']); | ||
|
||
// adapted for production and use only model and not factory | ||
$user = \App\Models\User::firstOrCreate([ | ||
'email' => '[email protected]', | ||
|
@@ -35,8 +30,8 @@ public function run(): void | |
'lastname' => 'Istrator', | ||
'role' => 'cursus_director', | ||
'avatar_filename' => 'lulu', | ||
's3_credentials' => json_encode($s3_credentials), | ||
's3_credentials' => json_encode([]), | ||
]); | ||
|
||
} | ||
} | ||
} |