source: app/Models/File.php@ b9c4a92

develop
Last change on this file since b9c4a92 was 24a616f, checked in by Berat Kjufliju <kufliju@…>, 3 years ago

added documents crud, added last_seen_to_user, edited views

  • Property mode set to 100644
File size: 277 bytes
Line 
1<?php
2
3namespace App\Models;
4
5use Illuminate\Database\Eloquent\Model;
6
7class File extends Model
8{
9 protected $table = "files";
10 protected $fillable = ["link", "document_id"];
11
12 public function document()
13 {
14 return $this->belongsTo(Document::class);
15 }
16}
Note: See TracBrowser for help on using the repository browser.