Final fixes
This commit is contained in:
		
					parent
					
						
							
								667da58bd9
							
						
					
				
			
			
				commit
				
					
						904f60a680
					
				
			
		
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -24,13 +24,13 @@ public function guestbookPost(Request $request) { | |||
| 
 | ||||
|         DB::insert( | ||||
|             'INSERT INTO guestbook__entries (name, timestamp, ip_address, agent, message) values (?, ?, ?, ?, ?)', | ||||
|             array( | ||||
|             [ | ||||
|                 htmlspecialchars($request->get('name')), | ||||
|                 time(), | ||||
|                 $request->ip(), | ||||
|                 $request->userAgent(), | ||||
|                 htmlspecialchars($request->get('message')) | ||||
|             ) | ||||
|             ] | ||||
|         ); | ||||
| 
 | ||||
|         return back()->with('success', 'Entry submitted successfully!'); | ||||
|  |  | |||
|  | @ -26,5 +26,5 @@ public function handle(Request $request, Closure $next, string ...$guards): Resp | |||
|         } | ||||
| 
 | ||||
|         return $next($request); | ||||
|     } // end handle()
 | ||||
|     } //end handle()
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Frankie B
				Frankie B