Using Laravel Facades
I don't use Facades much, but I think I'll end up using them if I ever create a package, so I'm documenting how to use them. Because IDE autocompletion needs to
GGAMI
I don't use Facades much, but I think I'll end up using them if I ever create a package, so I'm documenting how to use them. Because IDE autocompletion needs to
I don't use Facades much, but I think I'll end up using them if I ever create a package, so I'm documenting how to use them.
Because IDE autocompletion needs to work...
<?php
namespace App\Services\Emoji\Facades;
use Illuminate\Support\Facades\Facade;<?php
namespace App\Services\Emoji;
use App\Services\Emoji\Data\EmojiData;<?php
namespace App\Providers;
use App\Services\Emoji\EmojiService;
use 'providers' => [
/*
* Application Service Providers...
*/
App\Providers\EmojiServiceProvider::class,
],
'aliases' => FacadeRegister it like this. However, I understand that in Laravel 11, providers are registered automatically, so you may not need to add
App\Providers\EmojiServiceProvider::class.
Emoji::getEmoji(id: 111);Then you'll be able to use it like this.