29 lines
459 B
PHP
29 lines
459 B
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
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');
|
|
}
|
|
}
|