This commit is contained in:
gholak tala
2026-01-24 14:03:11 +00:00
parent 7dcd83715a
commit eb26afbcb3
224 changed files with 32652 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Http\Controllers\SuperController;
use App\Models\Cnt;
use Illuminate\Http\Request;
class ConstController extends SuperController
{
public function __construct()
{
parent::__construct(Cnt::class, [], ['*'], null, null, ['key']);
}
public function showValue($key){
$cnt = Cnt::where('key',$key)
->select('id','value','title_fa')->first();
return response()->json($cnt);
}
}