app/Http/Controllers/NewsController.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)
	{
		if( session()->has('email')){			
		$item = \App\News::find($id);
        if($item){
			$item->delete();
			$message = "News article deleted successfully.";
        }
		else
			$message = "Could not delete. News Article not found!";
		}else{
			$message = "Session expired. Please login to continue.";
		}
		return redirect()->route('home', ['info' => $message]);
	}
public function destroy ( $ id ) { if ( session ( ) -> has ( 'email' ) ) { $ item = \ App \ News :: find ( $ id ) ; if ( $ item ) { $ item -> delete ( ) ; $ message = " News article deleted successfully. " ; } else $ message = " Could not delete. News Article not found! " ; } else { $ message = " Session expired. Please login to continue. " ; } return redirect ( ) -> route ( 'home' , [ 'info' => $ message ] ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .