File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " mastashake08/laravel-openai-api" ,
33 "description" : " Add an OpenAI API easily into your projects." ,
4- "version" : " 1.1 .0" ,
4+ "version" : " 1.2 .0" ,
55 "keywords" : [
66 " mastashake08" ,
77 " laravel" ,
Original file line number Diff line number Diff line change @@ -18,10 +18,18 @@ public function configurePackage(Package $package): void
1818 $ package
1919 ->name ('laravel-openai-api ' )
2020 ->hasConfigFile (['openai ' ])
21- ->hasViews ()
2221 ->hasRoute ('api ' )
23- ->publishesServiceProvider ('OpenAI\Laravel\ServiceProvider ' )
22+ ->publishesServiceProvider ('Mastashake\LaravelOpenaiApi\LaravelOpenaiApiServiceProvider ' )
2423 ->hasMigration ('create_laravel-openai-api_table ' )
25- ->hasCommand (LaravelOpenaiApiCommand::class);
24+ ->hasCommand (LaravelOpenaiApiCommand::class)
25+ ->hasInstallCommand (function (InstallCommand $ command ) {
26+ $ command
27+ ->publishConfigFile ()
28+ ->publishMigrations ()
29+ ->askToRunMigrations ()
30+ ->copyAndRegisterServiceProviderInApp ()
31+ ->askToStarRepoOnGitHub ('mastashake08/laravel-openai-api ' );
32+ }
33+ );
2634 }
2735}
You can’t perform that action at this time.
0 commit comments