File tree 3 files changed +6
-7
lines changed
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:
32
32
"name" : " yourproject/yourproject" ,
33
33
"type" : " project" ,
34
34
"require" : {
35
- "php-telegram-bot/laravel" : " ~0.1 "
35
+ "php-telegram-bot/laravel" : " ^1.0 "
36
36
}
37
37
}
38
38
```
@@ -44,7 +44,7 @@ And run composer update
44
44
45
45
Copy the package config and migrations to your project with the publish command:
46
46
47
- php artisan vendor:publish --provider="PhpTelegramBot\Laravel\PhpTelegramBotServiceProvider "
47
+ php artisan vendor:publish --provider="PhpTelegramBot\Laravel\ServiceProvider "
48
48
49
49
After run migration command
50
50
Original file line number Diff line number Diff line change 12
12
*/
13
13
namespace PhpTelegramBot \Laravel ;
14
14
15
- use Illuminate \Contracts \Foundation \Application ;
16
- use Illuminate \Support \ServiceProvider ;
15
+ use Illuminate \Support \ServiceProvider as LaravelServiceProvider ;
17
16
18
- class PhpTelegramBotServiceProvider extends ServiceProvider
17
+ class ServiceProvider extends LaravelServiceProvider
19
18
{
20
19
/**
21
20
* Indicates if loading of the provider is deferred.
Original file line number Diff line number Diff line change 5
5
namespace Tests \Unit ;
6
6
7
7
use GrahamCampbell \TestBench \AbstractPackageTestCase ;
8
- use PhpTelegramBot \Laravel \PhpTelegramBotServiceProvider ;
8
+ use PhpTelegramBot \Laravel \ServiceProvider ;
9
9
10
10
abstract class AbstractTestCase extends AbstractPackageTestCase
11
11
{
@@ -17,6 +17,6 @@ abstract class AbstractTestCase extends AbstractPackageTestCase
17
17
*/
18
18
protected function getServiceProviderClass ($ app )
19
19
{
20
- return PhpTelegramBotServiceProvider ::class;
20
+ return ServiceProvider ::class;
21
21
}
22
22
}
You can’t perform that action at this time.
0 commit comments