Open gitkv opened 6 years ago
Hi @gitkv , thanks for your contribution, i will solve this issue, please, revert the version to 1.4 until the fix.
Im testing on lumen 5.6 and it's ok, no errors, whats your lumen version?
Thank! My version of Lumen 5.5
@gitkv Please, downgrade to version 1.4, for moment,
composer require urameshibr/lumen-form-request:1.4
i have the same problem
Method App\\Http\\Requests\\CreateArticleRequest::validate does not exist.
am using the Lumen version 5.7
@Shadomax Please, verify your Lumen version.
https://github.com/urameshibr/lumen-form-request#how-to-install
Lumen 5.5
composer require urameshibr/lumen-form-request:1.4
Lumen 5.6 +
composer require urameshibr/lumen-form-request
You can reinstall the package following that steps:
composer remove urameshibr/lumen-form-request
composer require urameshibr/lumen-form-request
am using Lumen 5.7
Any news about this? The package does not work with lumen 5.7
@alegargar What the package version are you using? Could you send me the composer.json from main project?
Hi there, I'm having the same problem. Here is my composer.json
{ "name": "laravel/lumen", "description": "The Laravel Lumen Framework.", "keywords": ["framework", "laravel", "lumen"], "license": "MIT", "type": "project", "require": { "php": ">=7.1.3", "dingo/api": "^2", "flipbox/lumen-generator": "^5.6", "laravel/lumen-framework": "5.8.*", "nesbot/carbon": "^2.17", "tymon/jwt-auth": "1.0.0-rc4.1", "urameshibr/lumen-form-request": "^1.5", "vlucas/phpdotenv": "^3.3" }, "require-dev": { "fzaninotto/faker": "^1.4", "phpunit/phpunit": "^7.0", "mockery/mockery": "^1.0" }, "autoload": { "classmap": [ "database/seeds", "database/factories" ], "psr-4": { "App\": "app/" }, "files": [ "app/Support/helpers.php" ] }, "autoload-dev": { "classmap": [ "tests/" ] }, "scripts": { "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ] }, "config": { "preferred-install": "dist", "sort-packages": true, "optimize-autoloader": true }, "minimum-stability": "dev", "prefer-stable": true }
I have to add something, as I've already switched to another package, but maybe it could be the same problem. I had wrongly typed the rules...
return [ "brandname_id" => 'required', . . . "on_stock" => 'required' ]);
Because of copying code I didn't remove that bracket before last semicolon and I had the same error on both packages. So please, don't be me, check your typos :)