Issues (378)

app/Models/SteamApp.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace App\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Laravel\Scout\Searchable;
7
8
/**
9
 * App\Models\SteamApp.
10
 *
11
 * @property string $name Steam application name
12
 * @property int $appid Steam application id
13
 *
14
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SteamApp whereAppid($value)
15
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SteamApp whereName($value)
16
 *
17
 * @mixin \Eloquent
18
 *
19
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SteamApp newModelQuery()
20
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SteamApp newQuery()
21
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SteamApp query()
22
 */
23
class SteamApp extends Model
24
{
25
    use Searchable;
0 ignored issues
show
The trait Laravel\Scout\Searchable requires the property $queryCallback which is not provided by App\Models\SteamApp.
Loading history...
26
27
    /**
28
     * @var bool
29
     */
30
    public $incrementing = false;
31
32
    /**
33
     * @var bool
34
     */
35
    protected $dateFormat = false;
36
37
    /**
38
     * @var bool
39
     */
40
    public $timestamps = false;
41
42
    /**
43
     * @var array
44
     */
45
    protected $guarded = [];
46
47
    public function searchableAs(): string
48
    {
49
        return 'ix_name_ft';
50
    }
51
52
    public function toSearchableArray(): array
53
    {
54
        return [
55
            'name' => $this->name,
56
        ];
57
    }
58
}
59