Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Jsanwo64's avatar

I am a bit lost on what is wrong

I am trying to integrate the Vimeo package into my laravel app. Followed all the necessary steps which are below

composer require vimeo/laravel

added this to the providers array

Vimeo\Laravel\VimeoServiceProvider::class

and this to the aliases array

'Vimeo' => Vimeo\Laravel\Facades\Vimeo::class

but when I try to publish

php artisan vendor:publish --provider="Vimeo\Laravel\VimeoServiceProvider"

I get the error

  Class "Vimeo\Laravel\VimeoServiceProvider" not found

My app.php

  'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        Illuminate\Auth\AuthServiceProvider::class,
        Illuminate\Broadcasting\BroadcastServiceProvider::class,
        Illuminate\Bus\BusServiceProvider::class,
        Illuminate\Cache\CacheServiceProvider::class,
        Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
        Illuminate\Cookie\CookieServiceProvider::class,
        Illuminate\Database\DatabaseServiceProvider::class,
        Illuminate\Encryption\EncryptionServiceProvider::class,
        Illuminate\Filesystem\FilesystemServiceProvider::class,
        Illuminate\Foundation\Providers\FoundationServiceProvider::class,
        Illuminate\Hashing\HashServiceProvider::class,
        Illuminate\Mail\MailServiceProvider::class,
        Illuminate\Notifications\NotificationServiceProvider::class,
        Illuminate\Pagination\PaginationServiceProvider::class,
        Illuminate\Pipeline\PipelineServiceProvider::class,
        Illuminate\Queue\QueueServiceProvider::class,
        Illuminate\Redis\RedisServiceProvider::class,
        Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
        Illuminate\Session\SessionServiceProvider::class,
        Illuminate\Translation\TranslationServiceProvider::class,
        Illuminate\Validation\ValidationServiceProvider::class,
        Illuminate\View\ViewServiceProvider::class,
        Propaganistas\LaravelDisposableEmail\DisposableEmailServiceProvider::class,
        Brian2694\Toastr\ToastrServiceProvider::class,


        /*
         * Package Service Providers...
         */
        Vimeo\Laravel\VimeoServiceProvider::class,

        /*
         * Application Service Providers...
         */
        App\Providers\AppServiceProvider::class,
        App\Providers\AuthServiceProvider::class,
        // App\Providers\BroadcastServiceProvider::class,
        App\Providers\EventServiceProvider::class,
        App\Providers\RouteServiceProvider::class,

    ],

'aliases' => [

        'Vimeo' => Vimeo\Laravel\Facades\Vimeo::class,
        'App' => Illuminate\Support\Facades\App::class,
        'Arr' => Illuminate\Support\Arr::class,
        'Artisan' => Illuminate\Support\Facades\Artisan::class,
        'Auth' => Illuminate\Support\Facades\Auth::class,
        'Blade' => Illuminate\Support\Facades\Blade::class,
        'Broadcast' => Illuminate\Support\Facades\Broadcast::class,
        'Bus' => Illuminate\Support\Facades\Bus::class,
        'Cache' => Illuminate\Support\Facades\Cache::class,
        'Config' => Illuminate\Support\Facades\Config::class,
        'Cookie' => Illuminate\Support\Facades\Cookie::class,
        'Crypt' => Illuminate\Support\Facades\Crypt::class,
        'Date' => Illuminate\Support\Facades\Date::class,
        'DB' => Illuminate\Support\Facades\DB::class,
        'Eloquent' => Illuminate\Database\Eloquent\Model::class,
        'Event' => Illuminate\Support\Facades\Event::class,
        'File' => Illuminate\Support\Facades\File::class,
        'Gate' => Illuminate\Support\Facades\Gate::class,
        'Hash' => Illuminate\Support\Facades\Hash::class,
        'Http' => Illuminate\Support\Facades\Http::class,
        'Js' => Illuminate\Support\Js::class,
        'Lang' => Illuminate\Support\Facades\Lang::class,
        'Log' => Illuminate\Support\Facades\Log::class,
        'Mail' => Illuminate\Support\Facades\Mail::class,
        'Notification' => Illuminate\Support\Facades\Notification::class,
        'Password' => Illuminate\Support\Facades\Password::class,
        'Queue' => Illuminate\Support\Facades\Queue::class,
        'RateLimiter' => Illuminate\Support\Facades\RateLimiter::class,
        'Redirect' => Illuminate\Support\Facades\Redirect::class,
        // 'Redis' => Illuminate\Support\Facades\Redis::class,
        'Request' => Illuminate\Support\Facades\Request::class,
        'Response' => Illuminate\Support\Facades\Response::class,
        'Route' => Illuminate\Support\Facades\Route::class,
        'Schema' => Illuminate\Support\Facades\Schema::class,
        'Session' => Illuminate\Support\Facades\Session::class,
        'Storage' => Illuminate\Support\Facades\Storage::class,
        'Str' => Illuminate\Support\Str::class,
        'URL' => Illuminate\Support\Facades\URL::class,
        'Validator' => Illuminate\Support\Facades\Validator::class,
        'View' => Illuminate\Support\Facades\View::class,
        'Toastr'  => Brian2694\Toastr\Facades\Toastr::class,
        'Alert' => RealRashid\SweetAlert\Facades\Alert::class,


    ],
0 likes
6 replies
gych's avatar

Maybe your config is cached try to clear it

php artisan config:clear

gych's avatar

@jsanwo64 Was the installation with composer successful ? Can you see the package in your composer file?

Jsanwo64's avatar

Sure, here is my composer.json

  "require": {
        "php": "^8.1",
        "brian2694/laravel-toastr": "^5.59",
        "guzzlehttp/guzzle": "^7.2",
        "intervention/image-laravel": "^1.2",
        "laravel/framework": "^10.10",
        "laravel/sanctum": "^3.3",
        "laravel/tinker": "^2.8",
        "laravel/ui": "*",
        "propaganistas/laravel-disposable-email": "^2.2",
        "propaganistas/laravel-phone": "^5.1",
        "graham-campbell/manager": "^5.0",
        "vimeo/vimeo-api": "^3.0"
    },
    "require-dev": {
        "fakerphp/faker": "^1.9.1",
        "laravel/pint": "^1.0",
        "laravel/sail": "^1.18",
        "mockery/mockery": "^1.4.4",
        "nunomaduro/collision": "^7.0",
        "phpunit/phpunit": "^10.1",
        "spatie/laravel-ignition": "^2.0",
        "psalm/plugin-laravel": "^1.4.0|^1.1|^2.7",
        "laravel/lumen-framework": "*",
        "vimeo/psalm": "^3.17|^4.19|^5.6"
    },
gych's avatar
gych
Best Answer
Level 29

@jsanwo64 I don't see the package in your composer file, something might have gone wrong with the installation.

If you're installing the latest version you should have vimeo/laravel: "^5.9" in composer.json

1 like
Jsanwo64's avatar

@gych Thanks. This worked. I guess i skipped that part. i was following their github composer.json file

   "require": {
        "php": "^7.2|^8.0",
        "illuminate/contracts": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
        "illuminate/support": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
        "graham-campbell/manager": "^5.0",
        "vimeo/vimeo-api": "^3.0"
    },
    "require-dev": {
        "laravel/framework": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
        "graham-campbell/analyzer": "^2.0|^3.1|^4.1",
        "graham-campbell/testbench": "^5.2|^6.1",
        "mockery/mockery": "^1.0",
        "phpunit/phpunit": "^7.0|^9.5.10|^10.5|^11.0",
        "psalm/plugin-laravel": "^1.4.0|^1.1|^2.7",
        "laravel/lumen-framework": "^5.7",
        "vimeo/psalm": "^3.17|^4.19|^5.6"
    },

šŸ¤¦ā€ā™‚ļø

1 like

Please or to participate in this conversation.