irazasyed / telegram-bot-sdk

🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
https://telegram-bot-sdk.com
BSD 3-Clause "New" or "Revised" License
3.03k stars 670 forks source link

laravel installation not working - Unable to locate publishable resources #758

Closed aibarra11 closed 4 years ago

aibarra11 commented 4 years ago

steps:

composer require irazasyed/telegram-bot-sdk ^2.0

  - Installing irazasyed/telegram-bot-sdk (2.0.x-dev e8d29e1): Downloading (100%)
irazasyed/telegram-bot-sdk suggests installing irazasyed/larasupport (Allows you to use any Laravel Package in Lumen by adding support!)
Writing lock file

then

php artisan vendor:publish --provider="Telegram\Bot\Laravel\TelegramServiceProvider"

Unable to locate publishable resources.
Publishing complete.

if i check what's available to publish:

/var/www/html # php artisan vendor:publish

 Which provider or tag's files would you like to publish?:
  [0 ] Publish files from all providers and tags listed below
  [1 ] Provider: BenSampo\Enum\EnumServiceProvider
  [2 ] Provider: Facade\Ignition\IgnitionServiceProvider
  [3 ] Provider: Fideloper\Proxy\TrustedProxyServiceProvider
  [4 ] Provider: Fruitcake\Cors\CorsServiceProvider
  [5 ] Provider: Illuminate\Foundation\Providers\FoundationServiceProvider
  [6 ] Provider: Illuminate\Mail\MailServiceProvider
  [7 ] Provider: Illuminate\Notifications\NotificationServiceProvider
  [8 ] Provider: Illuminate\Pagination\PaginationServiceProvider
  [9 ] Provider: Laravel\Horizon\HorizonServiceProvider
  [10] Provider: Laravel\Tinker\TinkerServiceProvider
  [11] Provider: MLL\GraphQLPlayground\GraphQLPlaygroundServiceProvider
  [12] Provider: Nuwave\Lighthouse\LighthouseServiceProvider
  [13] Provider: Spatie\EventSourcing\EventSourcingServiceProvider
  [14] Provider: Spatie\Permission\PermissionServiceProvider
  [15] Provider: Tymon\JWTAuth\Providers\LaravelServiceProvider
  [16] Tag: config
  [17] Tag: cors
  [18] Tag: flare-config
  [19] Tag: horizon-assets
  [20] Tag: horizon-config
  [21] Tag: horizon-provider
  [22] Tag: ignition-config
  [23] Tag: laravel-errors
  [24] Tag: laravel-mail
  [25] Tag: laravel-notifications
  [26] Tag: laravel-pagination
  [27] Tag: migrations
  [28] Tag: schema
  [29] Tag: views

it is clearly not here.

my composer.json PHP 7.4 in alpine docker and laravel v7.17.2

  "require": {
        "php": "^7.2.5",
        "bensampo/laravel-enum": "^1.37",
        "fideloper/proxy": "^4.2",
        "fruitcake/laravel-cors": "^1.0",
        "guzzlehttp/guzzle": "^6.5",
        "laravel/framework": "^7.0",
        "laravel/horizon": "^4.3",
        "laravel/tinker": "^2.0",
        "mll-lab/laravel-graphql-playground": "^2.1",
        "nuwave/lighthouse": "^4.13",
        "pusher/pusher-php-server": "~4.0",
        "rollbar/rollbar-laravel": "^6.0",
        "spatie/laravel-event-sourcing": "^3.1",
        "spatie/laravel-permission": "^3.11",
        "tymon/jwt-auth": "1.0",
        "vyuldashev/xml-to-array": "^1.0",
        "irazasyed/telegram-bot-sdk": "^2.0"
    },
    "require-dev": {
        "brianium/paratest": "^4.0",
        "facade/ignition": "^2.0",
        "fzaninotto/faker": "^1.9.1",
        "laravel/ui": "^2.0",
        "mockery/mockery": "^1.3.1",
        "nunomaduro/collision": "^4.1",
        "phpunit/phpunit": "^8.5"
    },

I'm wondering if the documentation is wrong.

aibarra11 commented 4 years ago

anyone else still having this problem, i updated the requirement to dev-master composer.json

        "irazasyed/telegram-bot-sdk": "dev-master",

be sure to delete your composer.lock file

ran

composer install
composer dump

cleared config, cache, views with php artisan

seems to be working now