patricktalmadge / bootstrapper

Laravel Twitter Bootstrap Bundle
561 stars 129 forks source link

Laravel5 bug #308

Closed boscorelly closed 8 years ago

boscorelly commented 8 years ago

Hi,

when trying to install in laravel5 :

> php artisan optimize
PHP Fatal error:  Undefined constant 'Bootstrapper\BootstrapperL5ServiceProvider' in /home/sites/xxxx/site/config/app.php on line 159
Script php artisan optimize handling the post-update-cmd event returned with an error

Installation failed, reverting ./composer.json to its original content.

  [RuntimeException]
  Error Output: PHP Fatal error:  Undefined constant 'Bootstrapper\Bootstrapper
  L5ServiceProvider' in /home/sites/xxxx/site/config/app.php on line 159
boscorelly commented 8 years ago

PHP 5.6.19-0+deb8u1

PatrickRose commented 8 years ago

That looks like laravel being silly. What's your app.php look like on that line?

boscorelly commented 8 years ago

I'm new to laravel. It's a fresh install and i've followed the guide at laravel website.

Just added the line you are giving on the project :

'Bootstrapper\BootstrapperL5ServiceProvider',

boscorelly commented 8 years ago

you can see here : http://pastebin.com/ii0sjwkV

I also have the sme problem with the following line of bootstrapper.

PatrickRose commented 8 years ago

Your app file has Bootstrapper\BootstrapperL5ServiceProvider - not 'Bootstrapper\BootstrapperL5ServiceProvider' (ie you haven't given the class name as a php string).

You could also change it to Bootstrapper\BootstrapperL5ServiceProvider::class and it'll work. On 4 Apr 2016 13:04, "Camille Ollié" notifications@github.com wrote:

you can see here : http://pastebin.com/ii0sjwkV

I also have the sme problem with the following line of bootstrapper.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/patricktalmadge/bootstrapper/issues/308#issuecomment-205265415

boscorelly commented 8 years ago

pffff it's not a bug, it's a noob :D

I was thinking the quotes are not needed, but they are.

Thanks for your answer !