Skip to content
Snippets Groups Projects
Commit e176e651 authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Arrumado modelo Event

parent 6ca83274
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ use Illuminate\Database\Eloquent\Model; ...@@ -7,7 +7,7 @@ use Illuminate\Database\Eloquent\Model;
class Event extends Model class Event extends Model
{ {
// //
protected $fillable = ['name', 'hours']; protected $fillable = ['name', 'type', 'date', 'place', 'hours', 'certificate_text'];
public function users() { public function users() {
return $this->belongsToMany('App\User'); return $this->belongsToMany('App\User');
......
...@@ -15,7 +15,11 @@ class CreateEventsTable extends Migration ...@@ -15,7 +15,11 @@ class CreateEventsTable extends Migration
Schema::create('events', function (Blueprint $table) { Schema::create('events', function (Blueprint $table) {
$table->increments('id'); $table->increments('id');
$table->string('name'); $table->string('name');
$table->string('type');
$table->date('date');
$table->string('place');
$table->integer('hours'); $table->integer('hours');
$table->string('certificate_text');
$table->timestamps(); $table->timestamps();
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment