Esempio n. 1
0
 /**
  * Store a newly created resource in storage.
  * POST /posts
  *
  * @return Response
  */
 public function store()
 {
     $input = Input::only('post');
     $this->postForm->validate($input);
     $post = new Post($input);
     $user = User::find(Auth::id());
     $post = $user->posts()->save($post);
     Flash::overlay('Post Success!', 'Good Job');
     return Redirect::back();
 }