1 | <?php |
||
2 | |||
3 | namespace App\Models; |
||
4 | |||
5 | use Illuminate\Database\Eloquent\Model; |
||
6 | use Laravel\Scout\Searchable; |
||
7 | |||
8 | /** |
||
9 | * App\Models\GamesInfo. |
||
10 | * |
||
11 | * @property int $id |
||
12 | * @property string $title |
||
13 | * @property string|null $asin |
||
14 | * @property string|null $url |
||
15 | * @property string|null $publisher |
||
16 | * @property int|null $genres_id |
||
17 | * @property string|null $esrb |
||
18 | * @property string|null $releasedate |
||
19 | * @property string|null $review |
||
20 | * @property bool $cover |
||
21 | * @property bool $backdrop |
||
22 | * @property string $trailer |
||
23 | * @property string $classused |
||
24 | * @property \Carbon\Carbon|null $created_at |
||
25 | * @property \Carbon\Carbon|null $updated_at |
||
26 | * |
||
27 | * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GamesInfo whereAsin($value) |
||
28 | * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GamesInfo whereBackdrop($value) |
||
29 | * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GamesInfo whereClassused($value) |
||
30 | * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GamesInfo whereCover($value) |
||
31 | * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GamesInfo whereCreatedAt($value) |
||
32 | * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GamesInfo whereEsrb($value) |
||
33 | * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GamesInfo whereGenresId($value) |
||
34 | * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GamesInfo whereId($value) |
||
35 | * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GamesInfo wherePublisher($value) |
||
36 | * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GamesInfo whereReleasedate($value) |
||
37 | * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GamesInfo whereReview($value) |
||
38 | * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GamesInfo whereTitle($value) |
||
39 | * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GamesInfo whereTrailer($value) |
||
40 | * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GamesInfo whereUpdatedAt($value) |
||
41 | * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GamesInfo whereUrl($value) |
||
42 | * |
||
43 | * @mixin \Eloquent |
||
44 | * |
||
45 | * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GamesInfo newModelQuery() |
||
46 | * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GamesInfo newQuery() |
||
47 | * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GamesInfo query() |
||
48 | */ |
||
49 | class GamesInfo extends Model |
||
50 | { |
||
51 | use Searchable; |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
52 | |||
53 | /** |
||
54 | * @var string |
||
55 | */ |
||
56 | protected $table = 'gamesinfo'; |
||
57 | |||
58 | /** |
||
59 | * @var bool |
||
60 | */ |
||
61 | protected $dateFormat = false; |
||
62 | |||
63 | /** |
||
64 | * @var array |
||
65 | */ |
||
66 | protected $guarded = []; |
||
67 | |||
68 | public function searchableAs(): string |
||
69 | { |
||
70 | return 'ix_title_ft'; |
||
71 | } |
||
72 | |||
73 | public function toSearchableArray(): array |
||
74 | { |
||
75 | return [ |
||
76 | 'title' => $this->title, |
||
77 | ]; |
||
78 | } |
||
79 | } |
||
80 |