Laravel this is not only a practical framework, it is also a programming style
so for example to save user ip into db:
$ip = Request::getClientIp(); ... $post->user_ip = DB::raw("inet_aton('$ip')"); $post->save()
I don't really like this code how to properly escape the $ip variable?
Aucun commentaire:
Enregistrer un commentaire