- Twitter Bootstrap 3.0.x
- Twitter typeahead.js 0.9.3
- Bootstrap 3 wysihtml5
Add to models/User.php:
//gcWorld/Msg
public function messages()
{
return $this->hasMany('Msg', 'to');
}
//gcWorld/Msg
public function sentmessages()
{
return $this->hasMany('Msg','from');
}
Display number of unread messages
{{ Msg::getNewMsg() }}