Projekt

Obecné

Profil

Stáhnout (625 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
<?php
2

    
3
namespace App;
4

    
5
use Illuminate\Database\Eloquent\Model;
6

    
7
class Metadata extends Model
8
{
9
    // Table Name
10
    protected $table = 'metadata';
11
    // Primary Key
12
    public $primaryKey = 'id';
13

    
14
    /**
15
     * Indicates if the model should be timestamped.
16
     *
17
     * @var bool
18
     */
19
    public $timestamps = false;
20

    
21
    /**
22
     * Get the artefact for this single metadata.
23
     */
24
    public function artefact(){
25
        return $this->belongsTo('App\Artefact');
26
    }
27

    
28
    /**
29
     * Get the users for the metadata.
30
     */
31
    public function users()
32
    {
33
        return $this->belongsToMany('App\User');
34
    }
35
}
(5-5/6)