src/Category.php 1 location
|
@@ 15-22 (lines=8) @@
|
12 |
|
|
13 |
|
public $timestamps = true; |
14 |
|
|
15 |
|
public function __construct(array $attributes = []) |
16 |
|
{ |
17 |
|
if ( ! isset($this->table)) { |
18 |
|
$this->setTable(config('blog.table_prefix', 'blog').'_categories'); |
19 |
|
} |
20 |
|
|
21 |
|
parent::__construct($attributes); |
22 |
|
} |
23 |
|
|
24 |
|
public function posts() |
25 |
|
{ |
src/Comment.php 1 location
|
@@ 23-30 (lines=8) @@
|
20 |
|
'is_approved' => 'boolean', |
21 |
|
]; |
22 |
|
|
23 |
|
public function __construct(array $attributes = []) |
24 |
|
{ |
25 |
|
if ( ! isset($this->table)) { |
26 |
|
$this->setTable(config('blog.table_prefix', 'blog').'_comments'); |
27 |
|
} |
28 |
|
|
29 |
|
parent::__construct($attributes); |
30 |
|
} |
31 |
|
|
32 |
|
public function commentable() |
33 |
|
{ |