Example #1
0
 /**
  * This method controls what happens when you move to /dashboard/create in your app.
  * Creates a new note. This is usually the target of form submit actions.
  * POST request.
  */
 public function create()
 {
     NoteModel::createNote(Request::post('note_text'));
     Redirect::to('note');
 }