Skip to content

Commit

Permalink
Support Laravel 8 (#36)
Browse files Browse the repository at this point in the history
* Support Laravel 8, drop PHP 7.2 support

* Add laravel/legacy-factories package

* Testbench minimum versions

* Be explicit with the media table name to avoid pluralisation issues
  • Loading branch information
Jack97 committed Oct 6, 2020
1 parent e3d3344 commit f1935c3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [7.4, 7.3, 7.2]
laravel: [^7.0, ^6.0, ~5.8.0]
php: [7.4, 7.3]
laravel: [^8.0, ^7.0, ^6.0, ~5.8.0]
dependency-versions: [prefer-lowest, prefer-stable]
include:
- laravel: ^8.0
testbench: ^6.0
- laravel: ^7.0
testbench: ^5.0
- laravel: ^6.0
Expand Down
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
}
],
"require": {
"php": "^7.2",
"laravel/framework": "~5.8.0|^6.0|^7.0",
"php": "^7.3",
"laravel/framework": "~5.8.0|^6.0|^7.0|^8.0",
"intervention/image": "^2.5"
},
"require-dev": {
"orchestra/testbench": "~3.8.0|^4.0|^5.0",
"mockery/mockery": "^1.2.3"
"orchestra/testbench": "~3.8.6|^4.8|^5.2|^6.0",
"mockery/mockery": "^1.2.3",
"laravel/legacy-factories": "^1.0.4"
},
"autoload": {
"psr-4": {
Expand Down
7 changes: 7 additions & 0 deletions src/Models/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@

class Media extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'media';

/**
* The attributes that are mass assignable.
*
Expand Down

0 comments on commit f1935c3

Please sign in to comment.