You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
444 B
20 lines
444 B
|
2 days ago
|
<?php
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
|
||
|
|
class CompanyNews extends Model
|
||
|
|
{
|
||
|
|
protected $table = 'company_news';
|
||
|
|
protected $guarded = ['id'];
|
||
|
|
protected $casts = [
|
||
|
|
'news_tags' => 'array', 'categories' => 'array', 'raw_payload' => 'array',
|
||
|
|
'is_visible' => 'boolean', 'version' => 'integer',
|
||
|
|
];
|
||
|
|
|
||
|
|
public function company()
|
||
|
|
{
|
||
|
|
return $this->belongsTo(Company::class);
|
||
|
|
}
|
||
|
|
}
|