Projekt

Obecné

Profil

Stáhnout (502 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
    public $primaryKey = 'id';//unnecessery?
13
14
15
    /**
16
     * Indicates if the model should be timestamped.
17
     *
18
     * @var bool
19
     */
20
    public $timestamps = false;
21
22
    /**
23
     * Get the artefacts for the catagory.
24
     */
25 43bb92a9 zabran
    public function artefacts()
26 344b1e53 zabran
    {
27
        return $this->belongsToMany('App\Artefact');
28
    }
29
30
31
}