first commit

This commit is contained in:
Noor E Ilahi
2026-01-09 12:54:53 +05:30
commit 7ccf44f7da
1070 changed files with 113036 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace App\Providers;
use App\Contracts\AttachmentService as AttachmentServiceContract;
use App\Helpers\AttachmentHelper;
use App\Services\AttachmentService;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Support\ServiceProvider;
class AttachmentServiceProvider extends ServiceProvider
{
/**
* Register services.
*/
public function register(): void
{
$this->app->bind(AttachmentServiceContract::class, AttachmentService::class);
}
/**
* Bootstrap services.
*/
public function boot(): void
{
// TODO: [ ] check if we can add more from Cattr modules
Relation::morphMap(AttachmentHelper::ABLE_BY);
}
}