feat: patient view, media player, and rich editor enhancements
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Filament\Support\Enums\Alignment;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
use Livewire\Livewire;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
@@ -29,7 +30,18 @@ public function register(): void {}
|
||||
|
||||
public function boot(): void
|
||||
{
|
||||
if (app()->runningInConsole() === false && isset($_SERVER['HTTP_HOST'])) {
|
||||
$scheme = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ? 'https' : 'http';
|
||||
$root = "{$scheme}://{$_SERVER['HTTP_HOST']}";
|
||||
URL::forceRootUrl($root);
|
||||
config([
|
||||
'app.url' => $root,
|
||||
'filesystems.disks.public.url' => $root . '/storage',
|
||||
]);
|
||||
}
|
||||
Livewire::component('app.filament.widgets.visit-stats-widget', VisitStatsWidget::class);
|
||||
Livewire::component('patient-media-player', \App\Livewire\PatientMediaPlayer::class);
|
||||
Livewire::component('expandable-text', \App\Livewire\ExpandableText::class);
|
||||
$observer = new SyncObserver();
|
||||
|
||||
Patient::observe($observer);
|
||||
|
||||
Reference in New Issue
Block a user