Skip to content

Commit 9fc2af5

Browse files
committed
Drop Laravel 5.0 support
1 parent 66819a1 commit 9fc2af5

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

README.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
This plugins allows you to enable two-factor authentication in your Laravel applications.
2121

22-
**Only Laravel 5 or greater supported**
22+
**Only Laravel 5.1 or greater supported**
2323

2424

2525
<a name="installation"></a>
@@ -34,19 +34,13 @@ composer require srmklive/authy
3434
* Add the service provider to your $providers array in config/app.php file like:
3535

3636
```php
37-
'Srmklive\Authy\Providers\AuthyServiceProvider' // Laravel 5
38-
```
39-
```php
40-
Srmklive\Authy\Providers\AuthyServiceProvider::class // Laravel 5.1 or greater
37+
Srmklive\Authy\Providers\AuthyServiceProvider::class
4138
```
4239

4340
* Add the alias to your $aliases array in config/app.php file like:
4441

4542
```php
46-
'Authy' => 'Srmklive\Authy\Facades\Authy' // Laravel 5
47-
```
48-
```php
49-
'Authy' => Srmklive\Authy\Facades\Authy::class // Laravel 5.1 or greater
43+
'Authy' => Srmklive\Authy\Facades\Authy::class
5044
```
5145

5246
* Run the following command to publish configuration:
@@ -142,7 +136,7 @@ protected $hidden = [
142136
// Uncomment this line for Laravel 5.2+
143137
//auth($this->getGuard())->logout();
144138

145-
// Uncomment this line for Laravel 5.0 & 5.1
139+
// Uncomment this line for Laravel 5.1
146140
// auth()->logout();
147141

148142
$request->session()->put('authy:auth:id', $user->id);
@@ -178,7 +172,7 @@ protected $hidden = [
178172
//$provider = config('auth.guards.' . $guard . '.provider');
179173
//$model = config('auth.providers.' . $provider . '.model');
180174

181-
// Uncomment the line below for use in Laravel 5.0 & 5.1
175+
// Uncomment the line below for use in Laravel 5.1
182176
// $model = config('auth.model');
183177

184178
$user = (new $model)->findOrFail(
@@ -189,8 +183,8 @@ protected $hidden = [
189183
// Uncomment this line for Laravel 5.2+
190184
//auth($this->getGuard())->login($user);
191185

192-
// Uncomment this line for Laravel 5.0 & 5.1
193-
//auth()->login($user);
186+
// Uncomment this line for Laravel 5.1
187+
//auth()->login($user);
194188

195189
return redirect()->intended($this->redirectPath());
196190
} else {

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"require": {
88
"guzzlehttp/guzzle": "~6.0",
99
"nesbot/carbon": "~1.2",
10-
"illuminate/support": "~5.0|~5.1|~5.2|~5.3|~5.4"
10+
"illuminate/support": "~5.1|~5.2|~5.3|~5.4|~5.5"
1111
},
1212
"autoload":{
1313
"psr-4": {

0 commit comments

Comments
 (0)