26 lines
465 B
PHP
26 lines
465 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class PublicPdfs extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
public function category()
|
|
{
|
|
return $this->belongsTo(PdfCategories::class, 'category_id');
|
|
}
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $fillable = [
|
|
'file_path',
|
|
'is_published',
|
|
];
|
|
}
|