📅  最后修改于: 2022-03-11 14:54:29.550000             🧑  作者: Mango
//for profile
function profile($id){
$data['user'] = User::find($id);
#insert view
User::find($id)->increment('views',1);
return view('/user/profile', $data);}
// end for profile