01 2020
This commit is contained in:
parent
bed91c4f4a
commit
c8948338bb
122 changed files with 7911 additions and 1639 deletions
42
app/Models/InquiryTemplate.php
Normal file
42
app/Models/InquiryTemplate.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 InquiryTemplate
|
||||
*
|
||||
* @property int $id
|
||||
* @property string $title
|
||||
* @property Collection|Inquiry[] $inquiries
|
||||
* @package App\Models
|
||||
* @property-read int|null $inquiries_count
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InquiryTemplate newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InquiryTemplate newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InquiryTemplate query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InquiryTemplate whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InquiryTemplate whereTitle($value)
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class InquiryTemplate extends Model
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
|
||||
protected $table = 'inquiry_template';
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'title'
|
||||
];
|
||||
|
||||
public function inquiries()
|
||||
{
|
||||
return $this->hasMany(Inquiry::class, 'template_id');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue