Migrate to HTMX (#114)

Dropped Livewire
Added HTMX
Added Blade code lint
Drop Mysql and Redis
Migrate to SQLite
This commit is contained in:
Saeed Vaziry
2024-03-06 17:02:59 +01:00
committed by GitHub
parent 5b2c419e91
commit b2083fc6b2
486 changed files with 8609 additions and 8707 deletions

View File

@ -1,43 +0,0 @@
<?php
namespace App\Jobs\Site;
use App\Events\Broadcast;
use App\Jobs\Job;
use App\Models\Site;
class ChangePHPVersion extends Job
{
protected Site $site;
protected string $version;
public function __construct(Site $site, $version)
{
$this->site = $site;
$this->version = $version;
}
public function handle(): void
{
$this->site->php_version = $this->version;
$this->site->server->webserver()->handler()->changePHPVersion($this->site, $this->version);
$this->site->save();
event(
new Broadcast('change-site-php-finished', [
'id' => $this->site->id,
'php_version' => $this->site->php_version,
])
);
}
public function failed(): void
{
event(
new Broadcast('change-site-php-failed', [
'message' => __('Failed to change PHP!'),
'id' => $this->site->id,
])
);
}
}