laravel running

This commit is contained in:
2026-07-02 15:52:13 +02:00
parent 2c6eda0db9
commit 5c667fd1cf
62 changed files with 12937 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
namespace App\Providers;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
public function register(): void
{
//
}
public function boot(): void
{
URL::forceScheme('https');
}
}
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace App\Providers;
use App\Models\Tenant;
use App\Models\User;
use App\Resources\UserResource;
use Inertia\Inertia;
use Inertia\Response;
final class InertiaProvider
{
private string $vueFile;
private array $props;
private ?User $user;
public function __construct(string $vueFile, array $props) {
$this->user = auth()->user();
$this->vueFile = $vueFile;
$this->props = $props;
}
public function render() : Response {
return Inertia::render(
str_replace('/', '/Views/', $this->vueFile),
$this->props
);
}
}