1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Larrock\Core\Models; |
4
|
|
|
|
5
|
|
|
use Illuminate\Database\Eloquent\Model; |
6
|
|
|
use Larrock\ComponentAdminSeo\Facades\LarrockSeo; |
|
|
|
|
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* \Larrock\Core\Models\Seo. |
10
|
|
|
* |
11
|
|
|
* @property int $id |
12
|
|
|
* @property string $seo_title |
13
|
|
|
* @property string $seo_description |
14
|
|
|
* @property string $seo_keywords |
15
|
|
|
* @property int $seo_id_connect |
16
|
|
|
* @property string $seo_url_connect |
17
|
|
|
* @property string $seo_type_connect |
18
|
|
|
* @property \Carbon\Carbon $created_at |
19
|
|
|
* @property \Carbon\Carbon $updated_at |
20
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Larrock\Core\Models\Seo whereId($value) |
21
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Larrock\Core\Models\Seo whereSeoTitle($value) |
22
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Larrock\Core\Models\Seo whereSeoDescription($value) |
23
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Larrock\Core\Models\Seo whereSeoKeywords($value) |
24
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Larrock\Core\Models\Seo whereSeoIdConnect($value) |
25
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Larrock\Core\Models\Seo whereSeoUrlConnect($value) |
26
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Larrock\Core\Models\Seo whereSeoTypeConnect($value) |
27
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Larrock\Core\Models\Seo whereCreatedAt($value) |
28
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Larrock\Core\Models\Seo whereUpdatedAt($value) |
29
|
|
|
* @method static \Illuminate\Database\Query\Builder|\Larrock\Core\Models\Seo find($value) |
30
|
|
|
* @mixin \Eloquent |
31
|
|
|
*/ |
32
|
|
|
class Seo extends Model |
33
|
|
|
{ |
34
|
|
|
/** @var $this Component */ |
35
|
|
|
protected $config; |
36
|
|
|
|
37
|
|
|
protected $table = 'seo'; |
38
|
|
|
|
39
|
|
|
protected $fillable = ['seo_title', 'seo_description', 'seo_keywords', 'seo_id_connect', 'seo_url_connect', 'seo_type_connect']; |
40
|
|
|
|
41
|
|
|
protected $casts = [ |
42
|
|
|
'id_connect' => 'integer', |
43
|
|
|
]; |
44
|
|
|
|
45
|
|
|
public function __construct(array $attributes = []) |
46
|
|
|
{ |
47
|
|
|
parent::__construct($attributes); |
48
|
|
|
$this->fillable(LarrockSeo::addFillableUserRows([])); |
49
|
|
|
$this->config = LarrockSeo::getConfig(); |
50
|
|
|
$this->table = LarrockSeo::getTable(); |
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
public function getConfig() |
54
|
|
|
{ |
55
|
|
|
return $this->config; |
56
|
|
|
} |
57
|
|
|
} |
58
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths