Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

ilestis/miscellany

299 stars
2 code files
View ilestis/miscellany on GitHub

app/Providers/ImgServiceProvider.php

Open in GitHub
use App\Services\ImgService;
use Illuminate\Support\ServiceProvider;
 
class ImgServiceProvider extends ServiceProvider
{
public function register()
{
$this->app->singleton(ImgService::class, function ($app) {
return new ImgService();
});
 
$this->app->alias(ImgService::class, 'img');
}
}

config/app.php

Open in GitHub
return [
//
'providers' => [
//
App\Providers\ImgServiceProvider::class,
],
//
];

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.