Commit e176e651 authored by Vytor Calixto's avatar Vytor Calixto 👾

Arrumado modelo Event

parent 6ca83274
......@@ -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');
......
......@@ -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();
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment