vendor class not found in laravel












1















I use unisharp file manager in my project. on my local everything works fine, but when I upload my project to server it gives error [SymfonyComponentDebugExceptionFatalErrorException] Class 'UnisharpLaravelfilemanagerLaravelFilemanagerServiceProvider' not found
in config/app.php everything's correct



    /*FileMananger*/
UnisharpLaravelfilemanagerLaravelFilemanagerServiceProvider::class,
InterventionImageImageServiceProvider::class,
/*CKEditor*/
UnisharpCkeditorServiceProvider::class,


there is directory unisharp in vedor(so all files and directories are there). when i try to run composer install/update i get this error again. so everything in its right place, but laravel doesn't see this class.



comoser.json



{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.3.*",
"maatwebsite/excel": "~2.1.0",
"appzcoder/crud-generator": "^1.2",
"laravelcollective/html": "^5.3",
"lavary/laravel-menu": "dev-master",
"nesbot/carbon": "^1.21",
"laracasts/flash": "^2.0",
"spatie/laravel-medialibrary": "^3.11",
"firebase/php-jwt": "^4.0",
"doctrine/dbal": "^2.5"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.0",
"symfony/css-selector": "3.1.*",
"symfony/dom-crawler": "3.1.*"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\": "app/"
},
"files": [
"app/Http/helpers.php"
]
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-root-package-install": [
"php -r "file_exists('.env') || copy('.env.example', '.env');""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\Foundation\ComposerScripts::postInstall",
"php artisan optimize"
],
"post-update-cmd": [
"Illuminate\Foundation\ComposerScripts::postUpdate",
"php artisan optimize"
]
},
"config": {
"preferred-install": "dist"
}
}









share|improve this question

























  • Have you tried running the command composer dump-autoload and also php artisan optimize?

    – Denis Priebe
    Jan 24 '17 at 21:45








  • 2





    I don't see Laravelfilemanager package in your composer.json's require list?

    – Angad Dubey
    Jan 24 '17 at 21:45











  • thanks guys for reply. when I run php artisan it gives that error(no matter which command). i run dumpautoload it doesn't help

    – devnull Ψ
    Jan 24 '17 at 21:48













  • I added Laravelfilemanager in composer.json but same result

    – devnull Ψ
    Jan 24 '17 at 21:58
















1















I use unisharp file manager in my project. on my local everything works fine, but when I upload my project to server it gives error [SymfonyComponentDebugExceptionFatalErrorException] Class 'UnisharpLaravelfilemanagerLaravelFilemanagerServiceProvider' not found
in config/app.php everything's correct



    /*FileMananger*/
UnisharpLaravelfilemanagerLaravelFilemanagerServiceProvider::class,
InterventionImageImageServiceProvider::class,
/*CKEditor*/
UnisharpCkeditorServiceProvider::class,


there is directory unisharp in vedor(so all files and directories are there). when i try to run composer install/update i get this error again. so everything in its right place, but laravel doesn't see this class.



comoser.json



{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.3.*",
"maatwebsite/excel": "~2.1.0",
"appzcoder/crud-generator": "^1.2",
"laravelcollective/html": "^5.3",
"lavary/laravel-menu": "dev-master",
"nesbot/carbon": "^1.21",
"laracasts/flash": "^2.0",
"spatie/laravel-medialibrary": "^3.11",
"firebase/php-jwt": "^4.0",
"doctrine/dbal": "^2.5"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.0",
"symfony/css-selector": "3.1.*",
"symfony/dom-crawler": "3.1.*"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\": "app/"
},
"files": [
"app/Http/helpers.php"
]
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-root-package-install": [
"php -r "file_exists('.env') || copy('.env.example', '.env');""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\Foundation\ComposerScripts::postInstall",
"php artisan optimize"
],
"post-update-cmd": [
"Illuminate\Foundation\ComposerScripts::postUpdate",
"php artisan optimize"
]
},
"config": {
"preferred-install": "dist"
}
}









share|improve this question

























  • Have you tried running the command composer dump-autoload and also php artisan optimize?

    – Denis Priebe
    Jan 24 '17 at 21:45








  • 2





    I don't see Laravelfilemanager package in your composer.json's require list?

    – Angad Dubey
    Jan 24 '17 at 21:45











  • thanks guys for reply. when I run php artisan it gives that error(no matter which command). i run dumpautoload it doesn't help

    – devnull Ψ
    Jan 24 '17 at 21:48













  • I added Laravelfilemanager in composer.json but same result

    – devnull Ψ
    Jan 24 '17 at 21:58














1












1








1








I use unisharp file manager in my project. on my local everything works fine, but when I upload my project to server it gives error [SymfonyComponentDebugExceptionFatalErrorException] Class 'UnisharpLaravelfilemanagerLaravelFilemanagerServiceProvider' not found
in config/app.php everything's correct



    /*FileMananger*/
UnisharpLaravelfilemanagerLaravelFilemanagerServiceProvider::class,
InterventionImageImageServiceProvider::class,
/*CKEditor*/
UnisharpCkeditorServiceProvider::class,


there is directory unisharp in vedor(so all files and directories are there). when i try to run composer install/update i get this error again. so everything in its right place, but laravel doesn't see this class.



comoser.json



{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.3.*",
"maatwebsite/excel": "~2.1.0",
"appzcoder/crud-generator": "^1.2",
"laravelcollective/html": "^5.3",
"lavary/laravel-menu": "dev-master",
"nesbot/carbon": "^1.21",
"laracasts/flash": "^2.0",
"spatie/laravel-medialibrary": "^3.11",
"firebase/php-jwt": "^4.0",
"doctrine/dbal": "^2.5"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.0",
"symfony/css-selector": "3.1.*",
"symfony/dom-crawler": "3.1.*"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\": "app/"
},
"files": [
"app/Http/helpers.php"
]
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-root-package-install": [
"php -r "file_exists('.env') || copy('.env.example', '.env');""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\Foundation\ComposerScripts::postInstall",
"php artisan optimize"
],
"post-update-cmd": [
"Illuminate\Foundation\ComposerScripts::postUpdate",
"php artisan optimize"
]
},
"config": {
"preferred-install": "dist"
}
}









share|improve this question
















I use unisharp file manager in my project. on my local everything works fine, but when I upload my project to server it gives error [SymfonyComponentDebugExceptionFatalErrorException] Class 'UnisharpLaravelfilemanagerLaravelFilemanagerServiceProvider' not found
in config/app.php everything's correct



    /*FileMananger*/
UnisharpLaravelfilemanagerLaravelFilemanagerServiceProvider::class,
InterventionImageImageServiceProvider::class,
/*CKEditor*/
UnisharpCkeditorServiceProvider::class,


there is directory unisharp in vedor(so all files and directories are there). when i try to run composer install/update i get this error again. so everything in its right place, but laravel doesn't see this class.



comoser.json



{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.3.*",
"maatwebsite/excel": "~2.1.0",
"appzcoder/crud-generator": "^1.2",
"laravelcollective/html": "^5.3",
"lavary/laravel-menu": "dev-master",
"nesbot/carbon": "^1.21",
"laracasts/flash": "^2.0",
"spatie/laravel-medialibrary": "^3.11",
"firebase/php-jwt": "^4.0",
"doctrine/dbal": "^2.5"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.0",
"symfony/css-selector": "3.1.*",
"symfony/dom-crawler": "3.1.*"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\": "app/"
},
"files": [
"app/Http/helpers.php"
]
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-root-package-install": [
"php -r "file_exists('.env') || copy('.env.example', '.env');""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\Foundation\ComposerScripts::postInstall",
"php artisan optimize"
],
"post-update-cmd": [
"Illuminate\Foundation\ComposerScripts::postUpdate",
"php artisan optimize"
]
},
"config": {
"preferred-install": "dist"
}
}






php laravel laravel-5 laravel-5.3






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 '18 at 8:47







devnull Ψ

















asked Jan 24 '17 at 21:43









devnull Ψdevnull Ψ

81031031




81031031













  • Have you tried running the command composer dump-autoload and also php artisan optimize?

    – Denis Priebe
    Jan 24 '17 at 21:45








  • 2





    I don't see Laravelfilemanager package in your composer.json's require list?

    – Angad Dubey
    Jan 24 '17 at 21:45











  • thanks guys for reply. when I run php artisan it gives that error(no matter which command). i run dumpautoload it doesn't help

    – devnull Ψ
    Jan 24 '17 at 21:48













  • I added Laravelfilemanager in composer.json but same result

    – devnull Ψ
    Jan 24 '17 at 21:58



















  • Have you tried running the command composer dump-autoload and also php artisan optimize?

    – Denis Priebe
    Jan 24 '17 at 21:45








  • 2





    I don't see Laravelfilemanager package in your composer.json's require list?

    – Angad Dubey
    Jan 24 '17 at 21:45











  • thanks guys for reply. when I run php artisan it gives that error(no matter which command). i run dumpautoload it doesn't help

    – devnull Ψ
    Jan 24 '17 at 21:48













  • I added Laravelfilemanager in composer.json but same result

    – devnull Ψ
    Jan 24 '17 at 21:58

















Have you tried running the command composer dump-autoload and also php artisan optimize?

– Denis Priebe
Jan 24 '17 at 21:45







Have you tried running the command composer dump-autoload and also php artisan optimize?

– Denis Priebe
Jan 24 '17 at 21:45






2




2





I don't see Laravelfilemanager package in your composer.json's require list?

– Angad Dubey
Jan 24 '17 at 21:45





I don't see Laravelfilemanager package in your composer.json's require list?

– Angad Dubey
Jan 24 '17 at 21:45













thanks guys for reply. when I run php artisan it gives that error(no matter which command). i run dumpautoload it doesn't help

– devnull Ψ
Jan 24 '17 at 21:48







thanks guys for reply. when I run php artisan it gives that error(no matter which command). i run dumpautoload it doesn't help

– devnull Ψ
Jan 24 '17 at 21:48















I added Laravelfilemanager in composer.json but same result

– devnull Ψ
Jan 24 '17 at 21:58





I added Laravelfilemanager in composer.json but same result

– devnull Ψ
Jan 24 '17 at 21:58












3 Answers
3






active

oldest

votes


















3














Try to comment those lines in config/app.php and run composer require unisharp/laravel-filemanager again.



You can't set up service providers before they are downloaded through composer.






share|improve this answer
























  • Worked for me. Thhank you

    – umarbilal
    Sep 28 '18 at 6:06



















1














You need to run:



composer require unisharp/laravel-filemanager





share|improve this answer
























  • thanks for reply, but its already installed

    – devnull Ψ
    Jan 24 '17 at 22:24











  • By 'installed' do you mean added to your composer.json? Run composer dump-auto in the root of the project

    – Eric Tucker
    Jan 25 '17 at 17:36



















0














Make sure your config/app.php unisharp providers is matched with the content in folder vendor unisharp composer.json
check below:



Config/app.php
enter image description here



vendor/unisharp-composer.json
enter image description here






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f41839514%2fvendor-class-not-found-in-laravel%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    Try to comment those lines in config/app.php and run composer require unisharp/laravel-filemanager again.



    You can't set up service providers before they are downloaded through composer.






    share|improve this answer
























    • Worked for me. Thhank you

      – umarbilal
      Sep 28 '18 at 6:06
















    3














    Try to comment those lines in config/app.php and run composer require unisharp/laravel-filemanager again.



    You can't set up service providers before they are downloaded through composer.






    share|improve this answer
























    • Worked for me. Thhank you

      – umarbilal
      Sep 28 '18 at 6:06














    3












    3








    3







    Try to comment those lines in config/app.php and run composer require unisharp/laravel-filemanager again.



    You can't set up service providers before they are downloaded through composer.






    share|improve this answer













    Try to comment those lines in config/app.php and run composer require unisharp/laravel-filemanager again.



    You can't set up service providers before they are downloaded through composer.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jan 25 '17 at 3:21









    Stream HuangStream Huang

    816




    816













    • Worked for me. Thhank you

      – umarbilal
      Sep 28 '18 at 6:06



















    • Worked for me. Thhank you

      – umarbilal
      Sep 28 '18 at 6:06

















    Worked for me. Thhank you

    – umarbilal
    Sep 28 '18 at 6:06





    Worked for me. Thhank you

    – umarbilal
    Sep 28 '18 at 6:06













    1














    You need to run:



    composer require unisharp/laravel-filemanager





    share|improve this answer
























    • thanks for reply, but its already installed

      – devnull Ψ
      Jan 24 '17 at 22:24











    • By 'installed' do you mean added to your composer.json? Run composer dump-auto in the root of the project

      – Eric Tucker
      Jan 25 '17 at 17:36
















    1














    You need to run:



    composer require unisharp/laravel-filemanager





    share|improve this answer
























    • thanks for reply, but its already installed

      – devnull Ψ
      Jan 24 '17 at 22:24











    • By 'installed' do you mean added to your composer.json? Run composer dump-auto in the root of the project

      – Eric Tucker
      Jan 25 '17 at 17:36














    1












    1








    1







    You need to run:



    composer require unisharp/laravel-filemanager





    share|improve this answer













    You need to run:



    composer require unisharp/laravel-filemanager






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jan 24 '17 at 22:04









    Eric TuckerEric Tucker

    3,1731822




    3,1731822













    • thanks for reply, but its already installed

      – devnull Ψ
      Jan 24 '17 at 22:24











    • By 'installed' do you mean added to your composer.json? Run composer dump-auto in the root of the project

      – Eric Tucker
      Jan 25 '17 at 17:36



















    • thanks for reply, but its already installed

      – devnull Ψ
      Jan 24 '17 at 22:24











    • By 'installed' do you mean added to your composer.json? Run composer dump-auto in the root of the project

      – Eric Tucker
      Jan 25 '17 at 17:36

















    thanks for reply, but its already installed

    – devnull Ψ
    Jan 24 '17 at 22:24





    thanks for reply, but its already installed

    – devnull Ψ
    Jan 24 '17 at 22:24













    By 'installed' do you mean added to your composer.json? Run composer dump-auto in the root of the project

    – Eric Tucker
    Jan 25 '17 at 17:36





    By 'installed' do you mean added to your composer.json? Run composer dump-auto in the root of the project

    – Eric Tucker
    Jan 25 '17 at 17:36











    0














    Make sure your config/app.php unisharp providers is matched with the content in folder vendor unisharp composer.json
    check below:



    Config/app.php
    enter image description here



    vendor/unisharp-composer.json
    enter image description here






    share|improve this answer




























      0














      Make sure your config/app.php unisharp providers is matched with the content in folder vendor unisharp composer.json
      check below:



      Config/app.php
      enter image description here



      vendor/unisharp-composer.json
      enter image description here






      share|improve this answer


























        0












        0








        0







        Make sure your config/app.php unisharp providers is matched with the content in folder vendor unisharp composer.json
        check below:



        Config/app.php
        enter image description here



        vendor/unisharp-composer.json
        enter image description here






        share|improve this answer













        Make sure your config/app.php unisharp providers is matched with the content in folder vendor unisharp composer.json
        check below:



        Config/app.php
        enter image description here



        vendor/unisharp-composer.json
        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 23 '18 at 12:20









        GraldGrald

        343315




        343315






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f41839514%2fvendor-class-not-found-in-laravel%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            Xamarin.form Move up view when keyboard appear

            Post-Redirect-Get with Spring WebFlux and Thymeleaf

            Anylogic : not able to use stopDelay()