This commit is contained in:
Kevin Adametz 2020-02-14 10:18:20 +01:00
parent bed91c4f4a
commit c8948338bb
122 changed files with 7911 additions and 1639 deletions

42
app/Models/Website.php Normal file
View 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);
}
}