Skip to content

Commit

Permalink
Added support for Laravel 5.7 (#32)
Browse files Browse the repository at this point in the history
* Using $guarded instead of $fillable.

* Support for Laravel 5.7.x

* Renamed .codecov.yaml
  • Loading branch information
rennokki authored Sep 4, 2018
1 parent 37487cc commit 97cb278
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 18 deletions.
File renamed without changes.
7 changes: 1 addition & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@
}
],
"require": {
"illuminate/config": "~5.5.0|~5.6.0",
"illuminate/database": "~5.5.0|~5.6.0",
"illuminate/contracts": "~5.5.0|~5.6.0",
"illuminate/support": "~5.5.0|~5.6.0",
"illuminate/http": "~5.5.0|~5.6.0",
"illuminate/auth": "~5.5.0|~5.6.0"
"laravel/framework": "~5.5.0|~5.6.0|~5.7.0"
},
"require-dev": {
"phpunit/phpunit": "^6.2|^7.0",
Expand Down
5 changes: 1 addition & 4 deletions src/Models/BlockerModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
class BlockerModel extends Model
{
protected $table = 'blockers';
protected $fillable = [
'blockable_id', 'blockable_type',
'blocker_id', 'blocker_type',
];
protected $guarded = [];

public function blockable()
{
Expand Down
5 changes: 1 addition & 4 deletions src/Models/FollowerModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
class FollowerModel extends Model
{
protected $table = 'followers';
protected $fillable = [
'followable_id', 'followable_type',
'follower_id', 'follower_type',
];
protected $guarded = [];

public function followable()
{
Expand Down
5 changes: 1 addition & 4 deletions src/Models/LikerModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
class LikerModel extends Model
{
protected $table = 'likers';
protected $fillable = [
'likeable_id', 'likeable_type',
'liker_id', 'liker_type',
];
protected $guarded = [];

public function likeable()
{
Expand Down

0 comments on commit 97cb278

Please sign in to comment.