I had a Laravel project and I've added the following line in config/app.php
file (aliases
section).
'Telegram' => Telegram\Bot\Laravel\Facades\Telegram::class
And then it was working:
use Telegram\Bot\Laravel\Facades\Telegram;
Now I've migrated to Lumen micro framework. How can I do the same thing in Lumen?
Noted that I've added the following line in boostrap/app.php
file (and $app->withFecade
is uncommented now)
class_alias('Telegram\Bot\Laravel\Facades\Telegram::class', 'Telegram');
But still it is unknown and php artisan vendor publish
command throws:
Class 'Telegram\Bot\Laravel\Facades\Telegram::class' not found
Any idea?