diff --git a/publish/config/fortify.php b/publish/config/fortify.php index 558fe94..7546a33 100644 --- a/publish/config/fortify.php +++ b/publish/config/fortify.php @@ -144,7 +144,7 @@ */ 'features' => [ - Features::registration(), +// Features::registration(), Features::resetPasswords(), Features::emailVerification(), Features::updateProfileInformation(), diff --git a/src/Console/TomatoAdminUser.php b/src/Console/TomatoAdminUser.php new file mode 100644 index 0000000..f511431 --- /dev/null +++ b/src/Console/TomatoAdminUser.php @@ -0,0 +1,56 @@ +createOrFirst([ + 'name' => $name, + 'email' => $email, + 'password' => bcrypt($password), + ]); + + + \Laravel\Prompts\info('🍅 Thanks for using Tomato Plugins & TomatoPHP framework'); + \Laravel\Prompts\info('💼 Join support server on discord https://discord.gg/VZc8nBJ3ZU'); + \Laravel\Prompts\info('📄 You can check docs here https://docs.tomatophp.com'); + \Laravel\Prompts\info('⭐ please gave us a start on any repo if you like it https://github.com/tomatophp'); + \Laravel\Prompts\info('🤝 sponser us here https://github.com/sponsors/3x1io'); + } +} diff --git a/src/TomatoAdminServiceProvider.php b/src/TomatoAdminServiceProvider.php index 4cc2abe..050c2ce 100644 --- a/src/TomatoAdminServiceProvider.php +++ b/src/TomatoAdminServiceProvider.php @@ -4,6 +4,7 @@ use Illuminate\Support\Facades\Config; use Illuminate\Support\ServiceProvider; use Laravel\Jetstream\Jetstream; +use TomatoPHP\TomatoAdmin\Console\TomatoAdminUser; use TomatoPHP\TomatoAdmin\Views\MarkdownEditor; use TomatoPHP\TomatoAdmin\Views\MarkdownViewer; use ProtoneMedia\Splade\Http\SpladeMiddleware; @@ -112,7 +113,8 @@ public function register(): void $this->commands([ TomatoAdminInstall::class, - TomatoAdminUpgrade::class + TomatoAdminUpgrade::class, + TomatoAdminUser::class ]); $this->app->bind('tomato-menu',function(){