app/Http/Controllers/TweetController.php
/**
	 * Remove the specified resource from storage.
	 *
	 * @param  int  $id
	 * @return Response
	 */
Remove the specified resource from storage.
@param  int  $id
@return Response
Remove the specified resource from storage . @param int $id @return Response
public function destroy($id)
	{
		$tweet = Tweet::findOrFail($id);
		$tweet->delete();
		Log::info(Auth::user()->username . "( " . Auth::user()->id . ") DELETED tweet (" . $tweet->id . ")\r\n",
			[$tweet = json_decode($tweet, true)]
		);
        Session::flash('success','The tweet was successfully deleted!');
		return redirect()->route('tweets.index');
	}
public function destroy ( $ id ) { $ tweet = Tweet :: findOrFail ( $ id ) ; $ tweet -> delete ( ) ; Log :: info ( Auth :: user ( ) -> username . " (  " . Auth :: user ( ) -> id . " ) DELETED tweet ( " . $ tweet -> id . " ) \r \n " , [ $ tweet = json_decode ( $ tweet , true ) ] ) ; Session :: flash ( 'success' , 'The tweet was successfully deleted!' ) ; return redirect ( ) -> route ( 'tweets.index' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .
// Save entry to log file using built-in Monolog // set a flash message to be displayed on screen