Refactor navigation icon declarations in various resources for consistency; enhance Group model with new relationships and fillable properties; update Hotel and Pilgrim models with fillable attributes; improve table configurations across resources.
This commit is contained in:
22
app/Http/Controllers/CurrencyRatesController.php
Normal file
22
app/Http/Controllers/CurrencyRatesController.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\JsonResponse;
|
||||
|
||||
/**
|
||||
* Currency rates controller
|
||||
*/
|
||||
class CurrencyRatesController extends Controller
|
||||
{
|
||||
/**
|
||||
* USD to sar
|
||||
*/
|
||||
public function index(): JsonResponse
|
||||
{
|
||||
return response()->json([
|
||||
'USD_TO_SAR' => '3.70',
|
||||
'USD_TO_TMT' => '19.5',
|
||||
]);
|
||||
}
|
||||
}
|
||||
11
app/Http/Controllers/TestController.php
Normal file
11
app/Http/Controllers/TestController.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
class TestController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return 'Plain test';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user