Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gccei
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
CEI-UFPR
gccei
Commits
e176e651
Commit
e176e651
authored
Apr 13, 2016
by
Vytor Calixto
👾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Arrumado modelo Event
parent
6ca83274
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
app/Event.php
app/Event.php
+1
-1
database/migrations/2016_04_11_004142_create_events_table.php
...base/migrations/2016_04_11_004142_create_events_table.php
+4
-0
No files found.
app/Event.php
View file @
e176e651
...
...
@@ -7,7 +7,7 @@ use Illuminate\Database\Eloquent\Model;
class
Event
extends
Model
{
//
protected
$fillable
=
[
'name'
,
'
hours
'
];
protected
$fillable
=
[
'name'
,
'
type'
,
'date'
,
'place'
,
'hours'
,
'certificate_text
'
];
public
function
users
()
{
return
$this
->
belongsToMany
(
'App\User'
);
...
...
database/migrations/2016_04_11_004142_create_events_table.php
View file @
e176e651
...
...
@@ -15,7 +15,11 @@ class CreateEventsTable extends Migration
Schema
::
create
(
'events'
,
function
(
Blueprint
$table
)
{
$table
->
increments
(
'id'
);
$table
->
string
(
'name'
);
$table
->
string
(
'type'
);
$table
->
date
(
'date'
);
$table
->
string
(
'place'
);
$table
->
integer
(
'hours'
);
$table
->
string
(
'certificate_text'
);
$table
->
timestamps
();
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment