mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 17:28:55 +00:00
49ea718ce7
[ci skip] [skip ci]
42 lines
659 B
PHP
42 lines
659 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Laravel\Scout\Searchable;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ConsoleInfo extends Model
|
|
{
|
|
use Searchable;
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $table = 'consoleinfo';
|
|
|
|
/**
|
|
* @var bool
|
|
*/
|
|
protected $dateFormat = false;
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
protected $guarded = [];
|
|
|
|
public function searchableAs()
|
|
{
|
|
return 'ix_consoleinfo_title_platform_ft';
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function toSearchableArray()
|
|
{
|
|
return [
|
|
'title'=> $this->title,
|
|
'platform' => $this->platform,
|
|
];
|
|
}
|
|
}
|