示例#1
0
 /**
  * Show the application dashboard.
  *
  * @return Response
  */
 public function index()
 {
     $clients = Client::all();
     $projects = Project::all();
     $notes = ClientNote::all();
     return view('home')->with('clientCount', count($clients))->with('projectCount', count($projects))->with('noteCount', count($notes));
 }
 /**
  * Remove a tag from a note
  */
 public function apiRemoveTag(ClientNote $client_note, $tagName)
 {
     $tagToBeRemoved = \Cartalyst\Tags\IlluminateTag::whereName($tagName)->first();
     $client_note->untag($tagName);
     return $tagToBeRemoved;
 }