45 lines
1.3 KiB
PHP
45 lines
1.3 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
/**
|
|
* App\Models\TravelProgramCategory
|
|
*
|
|
* @property int $id
|
|
* @property string|null $name
|
|
* @property string $conversion_code
|
|
* @property-read int|null $travel_programs_count
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelProgramCategory newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelProgramCategory newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelProgramCategory query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelProgramCategory whereConversionCode($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelProgramCategory whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelProgramCategory whereName($value)
|
|
* @property-read Collection<int, \App\Models\TravelProgram> $travel_programs
|
|
* @mixin \Eloquent
|
|
*/
|
|
class TravelProgramCategory extends Model
|
|
{
|
|
protected $connection = 'mysql_stern';
|
|
|
|
protected $table = 'travel_category';
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
];
|
|
|
|
|
|
public function travel_programs()
|
|
{
|
|
return $this->hasMany(TravelProgram::class, 'category_id');
|
|
}
|
|
}
|