- add cv info
This commit is contained in:
@@ -13,6 +13,10 @@ class CVController extends Controller
|
||||
{
|
||||
public function show(CV $cv): JsonResource
|
||||
{
|
||||
$cv->info()
|
||||
->create([
|
||||
'ip' => $_SERVER['REMOTE_ADDR'],
|
||||
]);
|
||||
$cv->update(['views' => $cv->views+=1]);
|
||||
|
||||
return new CVResource($cv);
|
||||
|
Reference in New Issue
Block a user