ORM ??? ?? Hyperf ????? ?? ??
??:
Hyperf ?????? Swoole ? PHP7+? ???? ?? ??? ?????? ORM(Object Relational Mapping)? ???? ??? ?? ??? ???? ?? ???? ?????. ??? ? ????. ? ????? ORM ??? ?? Hyperf ?????? ???? ??? ???? ??? ?? ??? ?????.
- ?????? ?? ??
Hyperf ???????? ?? ?????? ??? ???? ???. config/autoload/database.php ??? ?? ?? ??? ?????? ?? ??? ?????. ?? ??, ?? ???? MySQL ??????? ?????.
'connections' => [ 'default' => [ 'driver' => 'mysql', 'host' => 'localhost', 'port' => 3306, 'database' => 'test', 'username' => 'root', 'password' => '', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'strict' => false, 'engine' => null, ], ],
- ?? ??
Hyperf ???????? ??? ??? ???? ?? ??? ??? ??? ? ????. ???? ?? ???? ?? ????? ???? ?? ??? ?????.
php bin/hyperf.php gen:model Test --table=test
? ??? app/Model ????? Test?? ?? ??? ???? ?? ??? ???? test???.
- ?? ??
app/Model/Test.php ??? ?? ?? ??? ? ? ????.
<?php declare (strict_types=1); namespace AppModel; use HyperfDbConnectionModelModel; class Test extends Model { /** * The table associated with the model. * * @var string */ protected $table = 'test'; }
?? ?????? ??? ???? ???? ??? ???? ??? ? ????. ?? ??, ??? ?? ??? ???? ??scopeQuery ???? ??? ? ????.
public function scopeQuery(Builder $query, array $conditions): Builder { return $query->where('column1', $conditions['column1']) ->where('column2', '>', $conditions['column2']); }
- ??? ?? ??
????, ??? ?? ??????? ??? ? ????. ??? ? ?? ???? ??? ????.
- ?? ??? ??:
$data = Test::find(1);
- ?? ??? ?? ??:
$datas = Test::whereIn('id', [1, 2, 3])->get();
- ??? ??:
$data = new Test(); $data->column1 = 'value1'; $data->column2 = 'value2'; $data->save();
- ??? ????:
$data = Test::find(1); $data->column1 = 'new_value1'; $data->column2 = 'new_value2'; $data->save();
- ??? ??:
$data = Test::find(1); $data->delete();
- ??? ?? ?? ??? ??:
$conditions = [ 'column1' => 'value1', 'column2' => 10, ]; $data = Test::query($conditions)->get();
?? ? ??? Hyperf ?????? ?? ?? ? ?? ???? ?????. ??? ??? ?? Hyperf ????? ??? ? ????.
??:
ORM ??? Hyperf ?????? ???? ?????? ??? ?? ????? ??? ???? ?? ???? ???? ? ????. ? ??? ??? ?? ?????? ?? ??, ?? ??, ?? ?? ? ???? ??? ?? ?? ??? ?? ? ????. ? ??? Hyperf ??????? ORM ??? ???? ? ??? ??? ????. ? ??? ?????? ????? ?? ?? ??? ?? Hyperf ?? ??? ??? ? ????.
? ??? ORM ??? ?? Hyperf ?????? ???? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

DirectX ?? ??? ?? ???? DirectX ??? ???? ?? ??? ???, ??? ???? ?? ??? ? ????. DirectX ?? ??? ???? ??? ??? ???? ?? ? ????. ??? ??? ????? ???????. 1. ?? ?? ?????? ???? ?? ??? ?????. 2. ??? ??? ? C++ ?? ??? ????? ??? ??? ???? ???? ?? ??? ??? ? ?? ?? ???? ?????. 3. ?? ??? ???? ??? ??? ? ?? ?? ??? ?????. 4. ??? ??? ? ?? ???? ?????. 5. ?? ?? ??? ??? ??? ??? ??? ???? ??? ??? ??? ????? ???? ?? ??? ? ? ????.

HTTP 525 ?? ?? ??: ?? ? ??? ?? HTTP(HypertextTransferProtocol) 525 ?? ??? SSL ????? ???? ?? ??? ??? ???? ?? ??? ??? ? ??? ?????. TLS(?? ?? ??) ????? ?? ??? ???? ??? ? ?? ??? ?????. ? ?? ??? ?? ?? ??? ??? ????? ?? ?? ?? ?? ??? ?????. ?????? HTTPS? ?? ??? ??? ???? ???? ?? ?? ????.

?????? ?? ??? ??? ???????, ??? ?? ???? ????? ???? ??? ????. ??? ?? ??? ??? ???? ?? ???? ????? ???? ??? ???????. 1. PotPlayer ??? PotPlayer ????? ?? ?? ???? ??? ????. (1) ??/?? ??: ???? (2) ??: ??? ?, ?? ??? ? (3) ???/??: ?? ? ??? ??? ? (4) ???: P-??? ??, H-View ??? (5) ????/??: Enter (6) ??: C-??, 7) ??/?? ???: D/

??? Baidu Netdisk ???? ??? ???? ???? ???? ???? Baidu Netdisk ???? ??? ??????. ???? ??? ???? ????? ??? ? ????. 1??: Baidu Netdisk? ??? ? ?? ??????(?? ??). 2??: ?? ?? ??? ????? ?? "? ??" ? "?? ??"? ?????(?? ??). ?? ??"? ???? ??? ??? ???? ?? ??? ? ????(?? ??). 4??: ?? ?? "??"? ??? ?? ??? ???? ???? ??? ??? ?????(?? ??). ?? ?? 1??: ?? ?? ??? ?? ? ????(?? ??). 6??: "?? ?? ??"(?? ??)?? ??? ??? ?? ?? ????. ? ??? ???? ?????.

KMS ?? ?? ??? Microsoft Windows ? Office ??? ?? ???? ? ???? ????? ?????. KMS? KeyManagementService? ??? ? ?? ??????. KMS ?? ?? ??? ???? ?? KMS ??? ???? Windows ? Office ??? ?? ??? ? ??? KMS ??? ??? ????????. KMS ??? ??? ??? ?? ??? ?????. ? ?? ???? ????? ???? ? ???, ???? ???? ??? ?? ??? Windows ???? Office ?????? ???? ? ????. ??? ?? ?????? Windows ?? ?? ??? ???????. KMS ?? ?? ??? ???????.

?? ????? Xiaoma win7 ??? ??? ???? ??? ?????. ??? Xiaoma win7 ??? ??? ???? ??? ?? ????? ????, ?? ??? ?? ??? ?? ???? Xiaoma win7 ??? ?? ?? ??? ???? ????. ?? ??? ?? ???. ? ?? ??? ???? ???? ? "? ???"? ???? ?? ??? "??? ??"? ???? Windows ?? ?? ??? ???? ????. ? ?? ????? ???? ????? win7 ??? ??? ?????? ???? ???(???? ?? ???? ??? ? ??). ? ?? ??? Xiaoma ??? ??? ?? "Windows ?? ???"? ???? ????. ? ?? ??? ??? ????? ???? ??? ??? ???? ????. 5??: Windows ?? ?? ??? ?? ???? ???? ?? ?????? ?????.

???? ?? ????? ??? ? ??? ?????. ?? ???? ??? ??? ???? ???? ???. ??? ?? ?? ??? ?????? ??? ?? ????? ???? ???? ??? ?? ????? ???????. win10 ?? ?? ?? ????? ???? ??: 1. "Win+R"? ??? cmd? ???? "?? ????"? ???. 2. chkdsk? ???? ?? ??? ???. 3. ?? ??? ??? ??? ?? ????. "d"? ?? ?? ??? 4. ?? ?? chkdskd:/F? ?????. 5. ?? ???? ?? ??? Y? ???? ??? ? ????.

? ??? ???? ???? ?? ?? ???? ???? ???? ??? ???? ?? ??? ????. ? ??? ??? ?? ?? ??? ?? ???? ???? ????? ?? ?? ??? ???? ? ?? ???? ?????. Microsoft Excel ? Google Sheets? ?? ?? ?????? ??????? ? ?? ??? ?? ???? ???? ?? ??? ? ????. ??? ? ? ??????? ?? ???? ??? ???? ?????. ????
