1 | <?php |
||
2 | |||
3 | namespace Djoudi\LaravelH5p\Eloquents; |
||
4 | |||
5 | use App\User; |
||
0 ignored issues
–
show
|
|||
6 | use DB; |
||
7 | use Illuminate\Database\Eloquent\Model; |
||
8 | |||
9 | //use App\Models\User; |
||
10 | |||
11 | class H5pContent extends Model |
||
12 | { |
||
13 | protected $primaryKey = 'id'; |
||
14 | protected $fillable = [ |
||
15 | 'user_id', |
||
16 | 'title', |
||
17 | 'library_id', |
||
18 | 'parameters', |
||
19 | 'filtered', |
||
20 | 'slug', |
||
21 | 'embed_type', |
||
22 | 'disable', |
||
23 | 'content_type', |
||
24 | 'author', |
||
25 | 'source', |
||
26 | 'year_from', |
||
27 | 'year_to', |
||
28 | 'license', |
||
29 | 'license_version', |
||
30 | 'license_extras', |
||
31 | 'author_comments', |
||
32 | 'changes', |
||
33 | 'default_languge', |
||
34 | 'keywords', |
||
35 | 'description', |
||
36 | ]; |
||
37 | |||
38 | public function user() |
||
39 | { |
||
40 | return $this->belongsTo(User::class); |
||
41 | } |
||
42 | |||
43 | public function get_user() |
||
44 | { |
||
45 | return (object) DB::table('users')->where('id', $this->user_id)->first(); |
||
46 | } |
||
47 | } |
||
48 |
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