Projekt

Obecné

Profil

Stáhnout (485 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 344b1e53 zabran
<?php
2
3
namespace App;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Category extends Model
8
{
9
    // Table Name
10
    protected $table = 'categories';
11
    // Primary Key
12 92577cfd Marek Lovčí
    public $primaryKey = 'id';
13 344b1e53 zabran
14
    /**
15
     * Indicates if the model should be timestamped.
16
     *
17
     * @var bool
18
     */
19
    public $timestamps = false;
20
21
    /**
22 92577cfd Marek Lovčí
     * Get the artefacts for the category.
23 344b1e53 zabran
     */
24 43bb92a9 zabran
    public function artefacts()
25 344b1e53 zabran
    {
26
        return $this->belongsToMany('App\Artefact');
27
    }
28
}