events-venues/app/Providers/ImageServiceProvider.php

27 lines
475 B
PHP

<?php
namespace App\Providers;
use App\Services\Image\Image;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;
class ImageServiceProvider extends ServiceProvider
{
/**
* Register services.
*/
public function register(): void
{
$this->app->singleton('image', Image::class);
}
/**
* Bootstrap services.
*/
public function boot(): void
{
class_alias(Image::class, 'Image');
}
}