app/Http/Controllers/TweetController.php
/**
    * Creates a new tweet
    * @return Response
    */
Creates a new tweet
@return Response
Creates a new tweet @return Response
public function create(Request $request){
		$tweet = new \App\Tweet;
	    $tweet->text = $request->input('text');
	    $tweet->author = 1;
	    $tweet->save();
	    return response($tweet->_out(), 201);
    }
public function create ( Request $ request ) { $ tweet = new \ App \ Tweet ; $ tweet -> text = $ request -> input ( 'text' ) ; $ tweet -> author = 1 ; $ tweet -> save ( ) ; return response ( $ tweet -> _out ( ) , 201 ) ; }
Creates a new tweet
 @return Response
Creates a new tweet @return Response