42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class Searchengine
|
|
*
|
|
* @property int $id
|
|
* @property string $name
|
|
* @property Collection|Lead[] $leads
|
|
* @package App\Models
|
|
* @property-read int|null $leads_count
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Searchengine newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Searchengine newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Searchengine query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Searchengine whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Searchengine whereName($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class Searchengine extends Model
|
|
{
|
|
protected $connection = 'mysql';
|
|
|
|
protected $table = 'searchengine';
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'name'
|
|
];
|
|
|
|
public function leads()
|
|
{
|
|
return $this->hasMany(Lead::class);
|
|
}
|
|
}
|