Skip to content

Commit

Permalink
1.0.33
Browse files Browse the repository at this point in the history
  • Loading branch information
dedanirungu committed Jun 14, 2023
1 parent abe09cf commit bc4f8e6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"keywords": ["mybizna", "setup manager"],
"homepage": "https://github.com/mybizna/setup",
"license": "LGPL-3.0-or-later",
"version": "1.0.30",
"version": "1.0.33",
"authors": [
{
"name": "Dedan Irungu",
Expand Down
24 changes: 12 additions & 12 deletions mybizna_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,21 +189,21 @@ if ! validate_string "$erp_phone"; then
fi


php artisan tinker <<EOF

use Illuminate\Support\Facades\Hash;
php artisan tinker --execute="
\$user = new App\Models\User();
\$user->password = Hash::make('$erp_password');
\$user->email = '$erp_email';
\$user->name = '$erp_name';
\$user->is_admin = 1;
\$user->username = '$erp_username';
\$user->phone = '$erp_phone';
\$user->save();
exit
EOF
use Illuminate\Support\Facades\Hash;
\$user = new App\Models\User();
\$user->password = Hash::make('$erp_password');
\$user->email = '$erp_email';
\$user->name = '$erp_name';
\$user->is_admin = 1;
\$user->username = '$erp_username';
\$user->phone = '$erp_phone';
\$user->save();
exit;
"

#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Expand Down

0 comments on commit bc4f8e6

Please sign in to comment.