We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0cf064 commit ffaa753Copy full SHA for ffaa753
src/Models/Followable.php src/Models/Follower.phpsrc/Models/Followable.php renamed to src/Models/Follower.php
@@ -3,17 +3,11 @@
3
use Illuminate\Database\Eloquent\Model;
4
5
/**
6
- * Class Followable
+ * Class Follower
7
* @package Lecturize\Followers\Models
8
*/
9
-class Followable extends Model
+class Follower extends Model
10
{
11
- /**
12
- * @todo make this editable via config file
13
- * @inheritdoc
14
- */
15
- protected $table = 'followables';
16
-
17
18
* @inheritdoc
19
@@ -34,6 +28,16 @@ class Followable extends Model
34
28
35
29
protected $with = ['followable', 'follower'];
36
30
31
+ /**
32
+ * @inheritdoc
33
+ */
+ public function __construct()
+ {
+ parent::__construct();
37
+
38
+ $this->table = config('lecturize.followers.table', 'followers');
39
+ }
40
41
42
* Morph followables
43
*
0 commit comments