Snipe-IT
Open Source Asset Management
FEATURES
DEMO
DOWNLOAD
DOCUMENTATION
HOSTED SOLUTION
SUPPORT
Intro
Namespaces
Classes
Files
Misc
snipe-it
app
Models
Group.php
Go to the documentation of this file.
1
<?php
2
namespace
App\Models
;
3
4
use
Watson\Validating\ValidatingTrait
;
5
6
use
Illuminate\Database\Eloquent\Model
;
7
8
class
Group
extends
Model
9
{
10
protected
$table
=
'groups'
;
11
12
public
$rules
= array(
13
'name'
=>
'required|min:3|max:255'
,
14
);
15
23
protected
$injectUniqueIdentifier
=
true
;
24
use
ValidatingTrait
;
25
26
30
public
function
users
()
31
{
32
return
$this->belongsToMany(
'\App\Models\User'
,
'users_groups'
);
33
}
34
}
Model
App\Models\Group\$rules
$rules
Definition:
Group.php:12
App\Models\Group\users
users()
Get user groups.
Definition:
Group.php:30
App\Models
Definition:
Accessory.php:2
App\Models\Group\$injectUniqueIdentifier
$injectUniqueIdentifier
Definition:
Group.php:23
App\Models\Group\$table
$table
Definition:
Group.php:10
ValidatingTrait
App\Models\Group
Definition:
Group.php:8
ValidatingTrait