vendor class not found in laravel
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
add a comment |
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
Have you tried running the commandcomposer dump-autoload
and alsophp artisan optimize
?
– Denis Priebe
Jan 24 '17 at 21:45
2
I don't seeLaravelfilemanager
package in your composer.json's require list?
– Angad Dubey
Jan 24 '17 at 21:45
thanks guys for reply. when I runphp 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 incomposer.json
but same result
– devnull Ψ
Jan 24 '17 at 21:58
add a comment |
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
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
php laravel laravel-5 laravel-5.3
edited Nov 22 '18 at 8:47
devnull Ψ
asked Jan 24 '17 at 21:43
devnull Ψdevnull Ψ
81031031
81031031
Have you tried running the commandcomposer dump-autoload
and alsophp artisan optimize
?
– Denis Priebe
Jan 24 '17 at 21:45
2
I don't seeLaravelfilemanager
package in your composer.json's require list?
– Angad Dubey
Jan 24 '17 at 21:45
thanks guys for reply. when I runphp 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 incomposer.json
but same result
– devnull Ψ
Jan 24 '17 at 21:58
add a comment |
Have you tried running the commandcomposer dump-autoload
and alsophp artisan optimize
?
– Denis Priebe
Jan 24 '17 at 21:45
2
I don't seeLaravelfilemanager
package in your composer.json's require list?
– Angad Dubey
Jan 24 '17 at 21:45
thanks guys for reply. when I runphp 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 incomposer.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
add a comment |
3 Answers
3
active
oldest
votes
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.
Worked for me. Thhank you
– umarbilal
Sep 28 '18 at 6:06
add a comment |
You need to run:
composer require unisharp/laravel-filemanager
thanks for reply, but its already installed
– devnull Ψ
Jan 24 '17 at 22:24
By 'installed' do you mean added to yourcomposer.json
? Runcomposer dump-auto
in the root of the project
– Eric Tucker
Jan 25 '17 at 17:36
add a comment |
Make sure your config/app.php unisharp providers is matched with the content in folder vendor unisharp composer.json
check below:
Config/app.php
vendor/unisharp-composer.json
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Worked for me. Thhank you
– umarbilal
Sep 28 '18 at 6:06
add a comment |
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.
Worked for me. Thhank you
– umarbilal
Sep 28 '18 at 6:06
add a comment |
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.
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.
answered Jan 25 '17 at 3:21
Stream HuangStream Huang
816
816
Worked for me. Thhank you
– umarbilal
Sep 28 '18 at 6:06
add a comment |
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
add a comment |
You need to run:
composer require unisharp/laravel-filemanager
thanks for reply, but its already installed
– devnull Ψ
Jan 24 '17 at 22:24
By 'installed' do you mean added to yourcomposer.json
? Runcomposer dump-auto
in the root of the project
– Eric Tucker
Jan 25 '17 at 17:36
add a comment |
You need to run:
composer require unisharp/laravel-filemanager
thanks for reply, but its already installed
– devnull Ψ
Jan 24 '17 at 22:24
By 'installed' do you mean added to yourcomposer.json
? Runcomposer dump-auto
in the root of the project
– Eric Tucker
Jan 25 '17 at 17:36
add a comment |
You need to run:
composer require unisharp/laravel-filemanager
You need to run:
composer require unisharp/laravel-filemanager
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 yourcomposer.json
? Runcomposer dump-auto
in the root of the project
– Eric Tucker
Jan 25 '17 at 17:36
add a comment |
thanks for reply, but its already installed
– devnull Ψ
Jan 24 '17 at 22:24
By 'installed' do you mean added to yourcomposer.json
? Runcomposer 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
add a comment |
Make sure your config/app.php unisharp providers is matched with the content in folder vendor unisharp composer.json
check below:
Config/app.php
vendor/unisharp-composer.json
add a comment |
Make sure your config/app.php unisharp providers is matched with the content in folder vendor unisharp composer.json
check below:
Config/app.php
vendor/unisharp-composer.json
add a comment |
Make sure your config/app.php unisharp providers is matched with the content in folder vendor unisharp composer.json
check below:
Config/app.php
vendor/unisharp-composer.json
Make sure your config/app.php unisharp providers is matched with the content in folder vendor unisharp composer.json
check below:
Config/app.php
vendor/unisharp-composer.json
answered Jun 23 '18 at 12:20
GraldGrald
343315
343315
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Have you tried running the command
composer dump-autoload
and alsophp 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