Skip to content

Commit

Permalink
2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Apr 10, 2020
1 parent 95bbe71 commit fdfc9d5
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 22 deletions.
7 changes: 4 additions & 3 deletions src/Events/Event.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/*
* This file is part of the overtrue/laravel-like.
* This file is part of the overtrue/laravel-like
*
* (c) overtrue <anzhengchao@gmail.com>
* (c) overtrue <i@overtrue.me>
*
* This source file is subject to the MIT license that is bundled.
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Overtrue\LaravelLike\Events;
Expand Down
7 changes: 4 additions & 3 deletions src/Events/Liked.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/*
* This file is part of the overtrue/laravel-like.
* This file is part of the overtrue/laravel-like
*
* (c) overtrue <anzhengchao@gmail.com>
* (c) overtrue <i@overtrue.me>
*
* This source file is subject to the MIT license that is bundled.
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Overtrue\LaravelLike\Events;
Expand Down
7 changes: 4 additions & 3 deletions src/Events/Unliked.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/*
* This file is part of the overtrue/laravel-like.
* This file is part of the overtrue/laravel-like
*
* (c) overtrue <anzhengchao@gmail.com>
* (c) overtrue <i@overtrue.me>
*
* This source file is subject to the MIT license that is bundled.
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Overtrue\LaravelLike\Events;
Expand Down
7 changes: 4 additions & 3 deletions src/Like.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/*
* This file is part of the overtrue/laravel-like.
* This file is part of the overtrue/laravel-like
*
* (c) overtrue <anzhengchao@gmail.com>
* (c) overtrue <i@overtrue.me>
*
* This source file is subject to the MIT license that is bundled.
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Overtrue\LaravelLike;
Expand Down
7 changes: 4 additions & 3 deletions src/LikeServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/*
* This file is part of the overtrue/laravel-like.
* This file is part of the overtrue/laravel-like
*
* (c) overtrue <anzhengchao@gmail.com>
* (c) overtrue <i@overtrue.me>
*
* This source file is subject to the MIT license that is bundled.
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Overtrue\LaravelLike;
Expand Down
10 changes: 6 additions & 4 deletions src/Traits/Likeable.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/*
* This file is part of the overtrue/laravel-like.
* This file is part of the overtrue/laravel-like
*
* (c) overtrue <anzhengchao@gmail.com>
* (c) overtrue <i@overtrue.me>
*
* This source file is subject to the MIT license that is bundled.
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Overtrue\LaravelLike\Traits;
Expand Down Expand Up @@ -55,7 +56,8 @@ public function likers()
config('auth.providers.users.model'),
config('like.likes_table'),
'likeable_id',
config('like.user_foreign_key'))
config('like.user_foreign_key')
)
->where('likeable_type', $this->getMorphClass());
}
}
7 changes: 4 additions & 3 deletions src/Traits/Liker.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/*
* This file is part of the overtrue/laravel-like.
* This file is part of the overtrue/laravel-like
*
* (c) overtrue <anzhengchao@gmail.com>
* (c) overtrue <i@overtrue.me>
*
* This source file is subject to the MIT license that is bundled.
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Overtrue\LaravelLike\Traits;
Expand Down

0 comments on commit fdfc9d5

Please sign in to comment.