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

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 InitialContactType
*
* @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\InitialContactType newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InitialContactType newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InitialContactType query()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InitialContactType whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InitialContactType whereName($value)
* @mixin \Eloquent
*/
class InitialContactType extends Model
{
protected $connection = 'mysql';
protected $table = 'initial_contact_type';
public $timestamps = false;
protected $fillable = [
'name'
];
public function leads()
{
return $this->hasMany(Lead::class, 'initialcontacttype_id');
}
}