Laravel 4: Fatal error: Class 'Patchwork\Utf8\Bootup' not found in autoload.php

后端 未结 6 1891
一生所求
一生所求 2021-01-14 15:06

I added \"cviebrock/image-validator\": \"1.0.*\" to require section of composer.json. After, I ran composer update

相关标签:
6条回答
  • 2021-01-14 15:21

    Dude, you just have to do this:

    composer require patchwork/utf8
    
    0 讨论(0)
  • 2021-01-14 15:23

    This error seems to me like there is no patchwork/utf8 package installed.

    See in your vendor folder whether the package exists or add in the require section in your composer.json file: "patchwork/utf8": "1.1.*" and then do composer update.

    0 讨论(0)
  • 2021-01-14 15:30

    I Solved It With composer dump-autoload and then composer update

    After that it works But if you encounter more issue try to Delete the vendor folder or just rename it fo backup puporse incase it fails like mv vendor ve then

    Delete composer.lock
    

    Run the command composer clearcache (or clear-cache) Run composer install

    Your good to go.

    0 讨论(0)
  • 2021-01-14 15:33

    I was having the same problem because when I run php artisan db:seed --class=PostsTableSeeder

    it started to remove laravel, symfony etc. I can't understand why?(may be my composer.json included at that time only "require": { "fzaninotto/faker": "1.3.*@dev" },)

    So what I did, I updated my composer.json again and run composer update --dev. composer.json as

    "require": {
        "laravel/framework": "4.2.*",
        "way/generators": "~2.0",
        "patchwork/utf8": "1.1.*",
        "fzaninotto/faker": "1.3.*@dev"
    },
    

    And that worked because it downloaded again everything.

    0 讨论(0)
  • 2021-01-14 15:35

    I am most certain you pulled your application from a git? If you take a closer look at your .gitignore file you would see that /vendor is one of the files/folders that git was told to ignore. You need to remove /vendor, composer.lock and composer.phar from .gitignore IF you're in development.

    Also if you navigate to the /vendors folder via FTP or ssh, you will see that it only has folders that were outlined in your composer.json file under

    "require": {
    
    }
    

    are the ones in the vendor folder.

    Once you run composer update and composer install you should be fine.

    0 讨论(0)
  • 2021-01-14 15:47

    I just commented the 'Patchwork\Utf8\Utf8ServiceProvider' in app.php and it worked

    0 讨论(0)
提交回复
热议问题