Comments (9)
Please provide the contents of your composer.json
from uniquewith-validator.
{
"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.
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 containvendor/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.
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.
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.
@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.
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.
Which file wasn't present? Maybe this could help others that run into the same issue.
from uniquewith-validator.
sorry, did not mean file, edited the previous comment
from uniquewith-validator.
Related Issues (20)
- It only works for the current request HOT 4
- Bad method call HOT 1
- Validation fails when updating composite keys with ignore HOT 1
- Using that validation rule with renamed fileds
- Update for Laravel 6.0 HOT 1
- Can't seem to get it working for Polymorph fields HOT 2
- How to add deleted_at, NULL HOT 2
- Update for Laravel 8.0 HOT 10
- Please add support for PHP 8 HOT 1
- Ignore is not working in array validation HOT 1
- unique_with can't validation on multiple column
- Migrate test suite from Travis to Github Actions HOT 1
- Wrong locale set on app
- Compatibility Issue with laravel 9 php 8.X HOT 11
- Counter-intuitive deleted_at in rules
- Ignoring deleted items not working properly
- Laravel 5.4 : doesn't work on updating ! HOT 5
- its not working with database connection HOT 1
- Giving duplicate entry in every new entry HOT 2
- Is there a possibility of a validator plugin for exist_with? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uniquewith-validator.