restore composer.json, add mysqli extension

This commit is contained in:
2026-04-15 17:02:52 +05:00
commit 77cf56a348
4317 changed files with 1397107 additions and 0 deletions

46
app/Jobs/Api/Auth/Store.php Executable file
View File

@@ -0,0 +1,46 @@
<?php
namespace App\Jobs\Api\Auth;
use App\Models\User;
use Illuminate\Support\Arr;
use App\Http\Requests\Api\Auth\Login as LoginRequest;
class Store
{
protected $attr;
/**
* Store constructor.
* @param array $attr
*/
public function __construct(array $attr = [])
{
$this->attr = Arr::only($attr, ['phone', 'verify_code', 'step']);
}
/**
* @param LoginRequest $request
* @param int $code
* @return Store
*/
public static function fromRequest(LoginRequest $request, int $code)
{
return new static([
'phone' => $request->getPhone(),
//'verify_code' => $code,
'step' => 2,
]);
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
return User::create($this->attr);
}
}