30 lines
565 B
PHP
Executable File
30 lines
565 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class BladeJctjOption extends Model
|
|
{
|
|
protected $table = 'blade_jctj_option';
|
|
public $timestamps = false;
|
|
|
|
public static function _hit($k)
|
|
{
|
|
$v = self::where("k", $k)->first()?->v;
|
|
|
|
return $v;
|
|
}
|
|
|
|
// public static function _listKey()
|
|
// {
|
|
// $aSelf = self::all()->toArray();
|
|
//
|
|
// foreach ($aSelf as &$aSelfRow) {
|
|
// unset($aSelfRow["content"]);
|
|
// }
|
|
//
|
|
// return $aSelf;
|
|
// }
|
|
}
|