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

Criada model Event e controller

parent 7547696b
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Event extends Model
{
//
protected $fillable = ['name', 'hours'];
public function users() {
return $this->belongsToMany('App\User');
}
}
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
class EventController extends Controller
{
//
}
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