File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ Create *composer.json* file:
3232 "name" : " yourproject/yourproject" ,
3333 "type" : " project" ,
3434 "require" : {
35- "php-telegram-bot/laravel" : " ~0.1 "
35+ "php-telegram-bot/laravel" : " ^1.0 "
3636 }
3737}
3838```
@@ -44,7 +44,7 @@ And run composer update
4444
4545Copy the package config and migrations to your project with the publish command:
4646
47- php artisan vendor:publish --provider="PhpTelegramBot\Laravel\PhpTelegramBotServiceProvider "
47+ php artisan vendor:publish --provider="PhpTelegramBot\Laravel\ServiceProvider "
4848
4949After run migration command
5050
Original file line number Diff line number Diff line change 1212 */
1313namespace PhpTelegramBot \Laravel ;
1414
15- use Illuminate \Contracts \Foundation \Application ;
16- use Illuminate \Support \ServiceProvider ;
15+ use Illuminate \Support \ServiceProvider as LaravelServiceProvider ;
1716
18- class PhpTelegramBotServiceProvider extends ServiceProvider
17+ class ServiceProvider extends LaravelServiceProvider
1918{
2019 /**
2120 * Indicates if loading of the provider is deferred.
Original file line number Diff line number Diff line change 55namespace Tests \Unit ;
66
77use GrahamCampbell \TestBench \AbstractPackageTestCase ;
8- use PhpTelegramBot \Laravel \PhpTelegramBotServiceProvider ;
8+ use PhpTelegramBot \Laravel \ServiceProvider ;
99
1010abstract class AbstractTestCase extends AbstractPackageTestCase
1111{
@@ -17,6 +17,6 @@ abstract class AbstractTestCase extends AbstractPackageTestCase
1717 */
1818 protected function getServiceProviderClass ($ app )
1919 {
20- return PhpTelegramBotServiceProvider ::class;
20+ return ServiceProvider ::class;
2121 }
2222}
You can’t perform that action at this time.
0 commit comments