source: app/Models/Folder.php@ c5e383e

Last change on this file since c5e383e was e78295c, checked in by beratkjufliju <kufliju@…>, 3 years ago

added version

  • Property mode set to 100644
File size: 587 bytes
Line 
1<?php
2
3namespace App\Models;
4
5use Illuminate\Database\Eloquent\Factories\HasFactory;
6use Illuminate\Database\Eloquent\Model;
7
8class Folder extends Model
9{
10 use HasFactory;
11 protected $table = "folders";
12
13 protected $fillable = ["arch_id", "name", "description", "location", "user_id", "department_id", "version"];
14
15
16 public function user() {
17 return $this->belongsTo(User::class);
18 }
19
20 public function department() {
21 return $this->belongsTo(Department::class);
22 }
23
24 public function files()
25 {
26 return $this->hasMany(File::class);
27 }
28}
Note: See TracBrowser for help on using the repository browser.