Skip to content

Commit

Permalink
refactor(pint): clean code with pint
Browse files Browse the repository at this point in the history
  • Loading branch information
tikrack committed Sep 16, 2024
1 parent 2f3d4ca commit c053a65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Admin/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function GetTables($day, $model)
'codes_visits_history' => $codes_visits_history,
'emails_history' => $emails_history,
'best_code_results' => $best_code_results,
"visits_history" => $visits_history
'visits_history' => $visits_history,
]);
}
}
4 changes: 2 additions & 2 deletions app/Http/Controllers/VisitController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class VisitController extends Controller
public function store(Request $request)
{
Visit::create([
"user_ip" => $request->ip(),
"user_agent" => $request->userAgent(),
'user_ip' => $request->ip(),
'user_agent' => $request->userAgent(),
]);
}
}
2 changes: 1 addition & 1 deletion routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
// return $request->user();
//})->middleware('auth:sanctum');

Route::get("visit", [VisitController::class, "store"]);
Route::get('visit', [VisitController::class, 'store']);

0 comments on commit c053a65

Please sign in to comment.