title: Mad hatter full calendar color events Laravel 5.4
body: <p>Hi i got some problem with change event color when I set title like '<code>Wydzial 1</code>' etc.
  I know I must fetch title from db next use if to check title but next I don't know what to do.
  I must do something like that: I create event with title '<code>Wydzial 1</code>' and get event with color:red, Next i want make event with title '<code>Wydzial 2</code>' with blue color. Something like that.
   Now its working all adding event with time and other but I dont know how make different color for event.</p>
  
  <p>Controller:</p>
  
  <pre><code>/**
   * Show the application dashboard.
   * 
   * @return \Illuminate\Http\Response
   */
  public function index()
  {
      $event = HomeModel::all();
  
  
      if($event-&gt;count()&gt;0)
      {
          foreach ($event as $eve) 
          {
                $all_day = $eve-&gt;day;
                $events[] = \Calendar::event(
                $eve-&gt;title,
                $eve-&gt;all_day,
                $eve-&gt;start,
                $eve-&gt;end,
                $eve-&gt;id
  
                );
          }
      }
      else
      {
          $events = [];
  
      }
  
      $titles = HomeModel::where('title')-&gt;get();
  
      if($titles == "Wydzial 1") {
          $color = '#378006'; 
      } elseif ($titles == "Wydzial 2") {
          $color = '#ff0000';
      } elseif ($titles == "Wydzial 3") {
          $color = '#73e600';
      } else  {
          $color = '#0066ff';
      }
  
      $calendar = \Calendar::addEvents($events)
          -&gt;setOptions([
              'FirstDay' =&gt; 1,
              'contentheight' =&gt; 650,
              'editable' =&gt; false,
              'allDay' =&gt; false,
              'aspectRatio' =&gt; 2,
              'slotLabelFormat' =&gt; 'HH:mm:ss',
              'timeFormat' =&gt; 'HH:mm',
              'color' =&gt; $color,           
              ])-&gt;setCallbacks([]);
  
      return view('home', compact('calendar'));
  
  }
  </code></pre>