83 lines
2.9 KiB
PHP
83 lines
2.9 KiB
PHP
<?php
|
|
|
|
namespace App\Models\Sym;
|
|
|
|
use App\Models\Booking;
|
|
use App\Models\Lead;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
/**
|
|
* App\Models\Sym\TravelCountry
|
|
*
|
|
* @property int $id
|
|
* @property string $name
|
|
* @property int|null $is_customer_country
|
|
* @property int|null $active_backend
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\TravelCountry whereActiveBackend($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\TravelCountry whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\TravelCountry whereIsCustomerCountry($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\TravelCountry whereName($value)
|
|
* @mixin \Eloquent
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\TravelCountry newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\TravelCountry newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\TravelCountry query()
|
|
* @property string|null $contact_headline
|
|
* @property string|null $contact_text_1
|
|
* @property string|null $contact_text_2
|
|
* @property string|null $contact_text_3
|
|
* @property string|null $contact_text_4
|
|
* @property string|null $contact_footer
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\TravelCountry whereContactFooter($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\TravelCountry whereContactHeadline($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\TravelCountry whereContactText1($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\TravelCountry whereContactText2($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\TravelCountry whereContactText3($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\TravelCountry whereContactText4($value)
|
|
* @property array|null $contact_lands
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\TravelCountry whereContactLands($value)
|
|
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Booking[] $bookings
|
|
* @property-read int|null $bookings_count
|
|
*/
|
|
class TravelCountry extends Model
|
|
{
|
|
|
|
protected $connection = 'mysql';
|
|
|
|
protected $table = 'travel_country';
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
'is_customer_country',
|
|
'active_backend',
|
|
'contact_lands',
|
|
'contact_headline',
|
|
'contact_text_1',
|
|
'contact_text_2',
|
|
'contact_text_3',
|
|
'contact_text_4',
|
|
'contact_footer',
|
|
|
|
];
|
|
|
|
protected $casts = ['contact_lands' => 'array'];
|
|
|
|
|
|
public $timestamps = false;
|
|
|
|
|
|
/*public function leads()
|
|
{
|
|
return $this->hasMany(Lead::class, 'travelcountry_id', 'id');
|
|
}*/
|
|
|
|
public function bookings()
|
|
{
|
|
return $this->hasMany(Booking::class, 'travel_country_id', 'id');
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|