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

Nielson's avatar

Problems installing repository on Forge

Hi guys,

So i've just started to use Forge with Digital Ocean today and using repositories for the first time. It's almost been a breeze so far, but i'm having some problems installing a repository from an existing site. I'm not sure what or where to fix the bug so I can move on. It looks like it's not working great with the bindshared() method probably because it has been decrepitated. I've tested with a complete new Laravel installation from my developer machine -> GitHub -> Forge which works fine, but my existing site is having trouble.

Can anyone help? :)

Error:

Cloning into 'default'...
Warning: Permanently added the RSA host key for IP address '192.30.252.131' to the list of known hosts.
Loading composer repositories with package information
Installing dependencies from lock file
  - Installing vlucas/phpdotenv (v2.2.0)
    Loading from cache

  - Installing symfony/polyfill-mbstring (v1.0.1)
    Loading from cache

  - Installing symfony/var-dumper (v3.0.1)
    Loading from cache

  - Installing symfony/translation (v3.0.1)
    Loading from cache

  - Installing symfony/routing (v3.0.1)
    Loading from cache

  - Installing symfony/process (v3.0.1)
    Loading from cache

  - Installing symfony/polyfill-util (v1.0.1)
    Loading from cache

  - Installing symfony/polyfill-php56 (v1.0.1)
    Loading from cache

  - Installing symfony/http-foundation (v3.0.1)
    Loading from cache

  - Installing symfony/event-dispatcher (v3.0.1)
    Loading from cache

  - Installing psr/log (1.0.0)
    Loading from cache

  - Installing symfony/debug (v3.0.1)
    Loading from cache

  - Installing symfony/http-kernel (v3.0.1)
    Loading from cache

  - Installing symfony/finder (v3.0.1)
    Loading from cache

  - Installing symfony/console (v3.0.1)
    Loading from cache

  - Installing swiftmailer/swiftmailer (v5.4.1)
    Loading from cache

  - Installing nikic/php-parser (v2.0.0)
    Loading from cache

  - Installing jakub-onderka/php-console-color (0.1)
    Loading from cache

  - Installing jakub-onderka/php-console-highlighter (v0.3.2)
    Loading from cache

  - Installing dnoegel/php-xdg-base-dir (0.1)
    Loading from cache

  - Installing psy/psysh (v0.6.1)
    Loading from cache

  - Installing paragonie/random_compat (1.1.5)
    Loading from cache

  - Installing nesbot/carbon (1.21.0)
    Loading from cache

  - Installing mtdowling/cron-expression (v1.0.4)
    Loading from cache

  - Installing monolog/monolog (1.17.2)
    Loading from cache

  - Installing league/flysystem (1.0.16)
    Loading from cache

  - Installing jeremeamia/superclosure (2.2.0)
    Loading from cache

  - Installing doctrine/inflector (v1.1.0)
    Loading from cache

  - Installing classpreloader/classpreloader (3.0.0)
    Loading from cache

  - Installing laravel/framework (v5.2.11)
    Loading from cache

  - Installing bican/roles (2.1.7)
    Loading from cache

  - Installing golonka/bbcodeparser (v2.2.1)
    Loading from cache

  - Installing illuminate/html (v5.0.0)
    Loading from cache

  - Installing psr/http-message (1.0)
    Loading from cache

  - Installing guzzlehttp/psr7 (1.2.3)
    Loading from cache

  - Installing intervention/image (2.3.6)
    Loading from cache

  - Installing smarty/smarty (v3.1.19)
    Loading from cache

  - Installing magicphp/framework (1.1.2)
    Loading from cache

  - Installing magicphp/magicphp (1.1.0)
    Loading from cache

  - Installing pusher/pusher-php-server (v2.3.0)
    Loading from cache

Generating autoload files
> php artisan clear-compiled

                                                                                         
  [Symfony\Component\Debug\Exception\FatalThrowableError]                                
  Fatal error: Call to undefined method Illuminate\Foundation\Application::bindShared()  
                                                                                         

Script php artisan clear-compiled handling the post-install-cmd event returned with an error

                      
  [RuntimeException]  
  Error Output:       
                      

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
0 likes
1 reply
Nielson's avatar
Nielson
OP
Best Answer
Level 14

I figured it out. The HTML and Form facades are depreciated and so are the method bindShared();.

Please or to participate in this conversation.