Skip to content

Commit 7adf09d

Browse files
author
Marcin Gierus
committed
Make possibility to add new Roles and Permissions
1 parent cb0d365 commit 7adf09d

File tree

5 files changed

+32
-1
lines changed

5 files changed

+32
-1
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/vendor
2+
/nbproject/private/

Diff for: nbproject/project.properties

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
include.path=${php.global.include.path}
2+
php.version=PHP_70
3+
source.encoding=UTF-8
4+
src.dir=src
5+
tags.asp=false
6+
tags.short=false
7+
web.root=.

Diff for: nbproject/project.xml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://www.netbeans.org/ns/project/1">
3+
<type>org.netbeans.modules.php.project</type>
4+
<configuration>
5+
<data xmlns="http://www.netbeans.org/ns/php-project/1">
6+
<name>role</name>
7+
</data>
8+
</configuration>
9+
</project>

Diff for: src/Models/Permission.php

+8-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@
66

77
class Permission extends Model
88
{
9+
10+
protected $fillable = [
11+
'name',
12+
'created_at',
13+
'updated_at'
14+
];
15+
916
/**
10-
* Set up Relation
17+
* Set up relation
1118
* @return Illuminate\Database\Eloquent\Model;
1219
*/
1320
public function roles(){

Diff for: src/Models/Role.php

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66

77
class Role extends Model
88
{
9+
10+
protected $fillable = [
11+
'name',
12+
'created_at',
13+
'updated_at'
14+
];
15+
916
/**
1017
* Set up relation
1118
* @return Illuminate\Database\Eloquent\Model;

0 commit comments

Comments
 (0)