diff --git a/app/controllers/MentorController.php b/app/controllers/MentorController.php index d2b1de2..0bac90b 100644 --- a/app/controllers/MentorController.php +++ b/app/controllers/MentorController.php @@ -48,15 +48,15 @@ class MentorController extends \BaseController { ->withInput(Input::except('password')); } else { // store - $nerd = new Mentor; - $nerd->name = Input::get('name'); - $nerd->email = Input::get('email'); + $mentor = new Mentor; + $mentor->name = Input::get('name'); + $mentor->email = Input::get('email'); var_dump('This is the value of title '. Input::get('title')); - $nerd->title = Input::get('title'); - $nerd->save(); + $mentor->title = Input::get('title'); + $mentor->save(); // redirect - Session::flash('message', 'Successfully created nerd!'); + Session::flash('message', 'Successfully created mentor!'); return Redirect::to('mentors'); } } diff --git a/app/views/mentors/create.blade.php b/app/views/mentors/create.blade.php index 4489ab5..1e01663 100644 --- a/app/views/mentors/create.blade.php +++ b/app/views/mentors/create.blade.php @@ -5,44 +5,105 @@
-