Code Monkey home page Code Monkey logo

Comments (9)

felixkiss avatar felixkiss commented on August 28, 2024

Please provide the contents of your composer.json

from uniquewith-validator.

ronlobo avatar ronlobo commented on August 28, 2024

{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"require": {
"laravel/framework": "4.0.",
"laravelbook/ardent": "dev-master",
"patricktalmadge/bootstrapper": "dev-develop",
"anahkiasen/former": "dev-master",
"edvinaskrucas/notification": "1.
",
"felixkiss/uniquewith-validator": "dev-master"
},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan optimize"
],
"pre-update-cmd": [
"php artisan clear-compiled"
],
"post-update-cmd": [
"php artisan optimize"
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "dev"
}

from uniquewith-validator.

felixkiss avatar felixkiss commented on August 28, 2024

Your composer.json looks correct.
It does sound like composer can't find the class, though.

  • Make sure composer update runs successfully.
  • Check the vendor/ directory. Does it contain vendor/felixkiss/ ?
  • Check vendor/composer/autoload_classmap.php. It should contain something like:
'Felixkiss\\UniqueWithValidator\\UniqueWithValidatorServiceProvider' => $vendorDir . '/felixkiss/uniquewith-validator/src/Felixkiss/UniqueWithValidator/UniqueWithValidatorServiceProvider.php',
'Felixkiss\\UniqueWithValidator\\ValidatorExtension' => $vendorDir . '/felixkiss/uniquewith-validator/src/Felixkiss/UniqueWithValidator/ValidatorExtension.php',

from uniquewith-validator.

felixkiss avatar felixkiss commented on August 28, 2024

I will close this for now, because you didn't respond. Reopen issue if you still need help figuring this stuff out.

from uniquewith-validator.

slue avatar slue commented on August 28, 2024

Got the same problem.
I get this every time i call php artisan.

{"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Class 'Felixkiss\UniqueWithValidator\UniqueWithValidatorServiceProvider' not found","file":"/is/htdocs/wp11234639_7C5RG7UGLS/.../vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php","line":123}}
Script php artisan clear-compiled handling the pre-update-cmd event returned with an error

I also have
"felixkiss/uniquewith-validator": "dev-master"

in my require json-tag

from uniquewith-validator.

felixkiss avatar felixkiss commented on August 28, 2024

@slue
Did you take the steps described above?
What is the result for you?

  • Make sure composer update runs successfully.
  • Check the vendor/ directory. Does it contain vendor/felixkiss/ ?
  • Check vendor/composer/autoload_classmap.php. It should contain something like:
'Felixkiss\\UniqueWithValidator\\UniqueWithValidatorServiceProvider' => $vendorDir . '/felixkiss/uniquewith-validator/src/Felixkiss/UniqueWithValidator/UniqueWithValidatorServiceProvider.php',
'Felixkiss\\UniqueWithValidator\\ValidatorExtension' => $vendorDir . '/felixkiss/uniquewith-validator/src/Felixkiss/UniqueWithValidator/ValidatorExtension.php',

from uniquewith-validator.

slue avatar slue commented on August 28, 2024

thanks for the quick response. actually it seems, as there was an error with the write permissions on our server, so it could not update the composer package "felixkiss/uniquewith-validator": "dev-master", or somehow it wasn't present at the server.
a composer install did help, but that had nothing to do with your package.

Anyway, I'd recommend to close this issue agian, because it had nothing to do with uniquewith-validator

from uniquewith-validator.

felixkiss avatar felixkiss commented on August 28, 2024

Which file wasn't present? Maybe this could help others that run into the same issue.

from uniquewith-validator.

slue avatar slue commented on August 28, 2024

sorry, did not mean file, edited the previous comment

from uniquewith-validator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.