01 2020
This commit is contained in:
parent
bed91c4f4a
commit
c8948338bb
122 changed files with 7911 additions and 1639 deletions
42
app/Models/Website.php
Normal file
42
app/Models/Website.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
*/
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Reliese\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class Website
|
||||
*
|
||||
* @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\Website newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Website newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Website query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Website whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Website whereName($value)
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class Website extends Model
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
|
||||
protected $table = 'website';
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'name'
|
||||
];
|
||||
|
||||
public function leads()
|
||||
{
|
||||
return $this->hasMany(Lead::class);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue