-
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.
πππππππππ (βΒ΄β‘`β)β°(Β°β½Β°)β―(^///^)β*: .q. o(β§β½β¦)o .q.:*β:-)ααα’(β¬β¬οΉβ¬β¬)ΰ²₯_ΰ²₯ΰ²₯_ΰ²₯(β¬β¬οΉβ¬β¬)ΰ²₯_ΰ²₯(β¬β¬οΉβ¬β¬)ΰ²₯_ΰ²₯(β¬β¬οΉβ¬β¬)ΰ²₯_ΰ²₯(β¬β¬οΉβ¬β¬)
- Loading branch information
Showing
6 changed files
with
38 additions
and
34 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([]), | ||
]); | ||
|
||
} | ||
} | ||
} |