-
Notifications
You must be signed in to change notification settings - Fork 1
Interesting Functionalities
Esteban Vergara Giraldo edited this page Sep 25, 2024
·
3 revisions
This feature allows administrators to generate a balanced review summary for specific games using AI technology (Gemini).
-
File:
app\Http\Controllers\GameController.php
- Line: 99
-
File:
resources\views\game\show.blade.php
- Line: 39
-
Route to view game:
Route::get('/games/{id}', 'App\Http\Controllers\GameController@show')->name('game.show')
-
Route to execute balance generation:
Route::post('/games/{id}/generate-balance', 'App\Http\Controllers\GameController@generateBalance')->name('game.generateBalance')
(As admin, this button will appear)
Users can search for a game by its name, providing a quick and efficient way to find specific titles.
-
File:
app\Http\Controllers\GameController.php
- Line: 64
-
File:
resources\views\game\index.blade.php
- Line: 18
-
Route to view games:
Route::get('/games', 'App\Http\Controllers\GameController@index')->name('game.index')
-
Route to execute search:
Route::get('/games/search', 'App\Http\Controllers\GameController@search')->name('game.search')
This functionality displays the most purchased games across the platform.
-
File:
app\Http\Controllers\GameController.php
- Line: 77
-
File:
resources\views\game\mostPurchased.blade.php
- Entire file
-
Route:
Route::get('/games/most-purchased', 'App\Http\Controllers\GameController@mostPurchased')->name('game.mostPurchased')
Displays the top 5 best-selling games from each company.
-
File:
app\Http\Controllers\CompanyController.php
- Entire file
-
File:
resources\views\company\topSellingGames.blade.php
- Entire file
-
Route:
Route::get('/companies/top-selling', 'App\Http\Controllers\CompanyController@topSellingGames')->name('company.topSellingGames')
Displays the top 5 categories with the highest number of games available on the platform.
-
File:
app\Http\Controllers\CategoryController.php
- Entire file
-
File:
resources\views\category\topCategories.blade.php
- Entire file
-
Route:
Route::get('/categories/top-categories', 'App\Http\Controllers\CategoryController@topCategories')->name('category.topCategories')