deploy commit

This commit is contained in:
2026-07-15 17:23:15 +07:00
commit b94ef4a695
148 changed files with 14831 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
namespace App\Providers;
use App\Services\SkinAiService;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
$this->app->singleton(SkinAiService::class);
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
//
}
}
+35
View File
@@ -0,0 +1,35 @@
<?php
namespace App\Providers;
use App\Models\Account;
use App\Models\Submission;
use App\Models\DoctorProfile;
use App\Policies\AccountPolicy;
use App\Policies\SubmissionPolicy;
use App\Policies\DoctorProfilePolicy;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Gate;
class AuthServiceProvider extends ServiceProvider
{
/**
* Map model policy
*
* @var array<class-string, class-string>
*/
protected $policies = [
Account::class => AccountPolicy::class,
Submission::class => SubmissionPolicy::class,
DoctorProfile::class => DoctorProfilePolicy::class,
];
/**
* Register any authentication / authorization services.
*/
public function boot(): void
{
Gate::define('access-doctor-section', fn($user)=> $user->role==='doctor' || $user->role==='admin');
$this->registerPolicies();
}
}
+32
View File
@@ -0,0 +1,32 @@
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Route;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider
{
/**
* The path to the "home" route for your application.
*
* @var string
*/
public const HOME = '/home';
/**
* Define your route model bindings, pattern filters, etc.
*/
public function boot()
{
$this->routes(function () {
Route::middleware('api')
->prefix('api')
->group(base_path('routes/api.php'));
Route::middleware('web')
->group(base_path('routes/web.php'));
});
}
}