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