Skip to content

Commit

Permalink
add support for Laravel 6
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Sep 4, 2019
1 parent 7cc00c4 commit 6444014
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `nova-backup-tool` will be documented in this file

## 3.2.0 - 2019-09-04

- add support for Laravel 6

## 3.1.1 - 2019-09-02

- fix incorrect `Dispatchable` trait import
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"require": {
"php": "^7.2",
"laravel/nova": "^2.0",
"illuminate/support": "^5.8",
"illuminate/support": "^5.8|^6.0",
"spatie/laravel-backup": "^6.0"
},
"require-dev": {
"orchestra/testbench": "^3.8",
"orchestra/testbench": "^3.8|^4.0",
"phpunit/phpunit": "8.0",
"spatie/phpunit-snapshot-assertions": "^2.0"
},
Expand Down
3 changes: 2 additions & 1 deletion src/Rules/PathToZip.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
namespace Spatie\BackupTool\Rules;

use Illuminate\Contracts\Validation\Rule;
use Illuminate\Support\Str;

class PathToZip implements Rule
{
public function passes($attribute, $value)
{
return ends_with($value, '.zip');
return Str::endsWith($value, '.zip');
}

public function message()
Expand Down

0 comments on commit 6444014

Please sign in to comment.