یلدا ادامه داره... ❤️ ۴۰ درصد تخفیف همه دورهها
استفاده از تخفیفهاC:\xampp\htdocs\onyx-master>php artisan db:backup
PHP Fatal error: Uncaught Error: Class 'JakubOnderka\PhpConsoleColor\ConsoleCol
or' not found in C:\xampp\htdocs\onyx-master\vendor\nunomaduro\collision\src\Hig
hlighter.php:47
Stack trace:
unoMaduro\Collision\Highlighter->__construct()
NunoMaduro\Collision\Writer->__construct()
NunoMaduro\Collision\Handler->__construct()
\Container.php(800): ReflectionClass->newInstanceArgs(Array)
\Container.php(646): Illuminate\Container\Container->build('NunoMaduro\Coll...'
)
\Container.php(6 in C:\xampp\htdocs\onyx-master\vendor\nunomaduro\collision\src\
Highlighter.php on line 47
PHP Fatal error: Uncaught Error: Class 'JakubOnderka\PhpConsoleColor\ConsoleCol
or' not found in C:\xampp\htdocs\onyx-master\vendor\nunomaduro\collision\src\Hig
hlighter.php:47
Stack trace:
unoMaduro\Collision\Highlighter->__construct()
NunoMaduro\Collision\Writer->__construct()
NunoMaduro\Collision\Handler->__construct()
\Container.php(800): ReflectionClass->newInstanceArgs(Array)
\Container.php(646): Illuminate\Container\Container->build('NunoMaduro\Coll...'
)
\Container.php(6 in C:\xampp\htdocs\onyx-master\vendor\nunomaduro\collision\src\
Highlighter.php on line 47
سلام من یه کامند ساختم اما این ارور و دارم ورژن php 7.3 ورژن لاراول laravel 5.6.*
اینم فایل کمپوزرم
{
"name": "artiash/portal",
"description": "The artiash portal.",
"keywords": [
"artiash",
"portal"
],
"author": [
{
"name": "Artiash Company",
"email": "info@artiash.com"
}
],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.1.3",
"ext-json": "",
"anhskohbo/no-captcha": "^3.1",
"barryvdh/laravel-dompdf": "^0.8.6",
"barryvdh/laravel-elfinder": "^0.3.12",
"cviebrock/eloquent-sluggable": "^4.5",
"fideloper/proxy": "^4.0",
"hekmatinasser/verta": "^1.10",
"intervention/image": "^2.4",
"ipecompany/smsirlaravel": "^1.0",
"jakub-onderka/php-console-color": "^0.2.0",
"larabook/gateway": "^3.4",
"larapack/config-writer": "1.",
"laravel/framework": "5.6.*",
"laravel/tinker": "^1.0",
"maatwebsite/excel": "^3.1",
"morilog/jalali": "^2.3",
"nwidart/laravel-modules": "^3.3",
"php-parallel-lint/php-console-color": "^1.0",
"phpmailer/phpmailer": "^6.1",
"phpoffice/phpspreadsheet": "^1.10",
"unisharp/laravel-ckeditor": "^4.7",
"uxweb/sweet-alert": "^2.0"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.1",
"barryvdh/laravel-ide-helper": "^2.4",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\": "app/",
"Modules\": "Modules/",
"Classes\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\Foundation\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
سلام!
پکیج "nunomaduro/collision": "^2.0"
در composer.json از require-dev به require جابجا کنید و دستور composer update
رو اجرا کنید.
ویرایش :
با اجرای دستور
composer depends --tree jakub-onderka/php-console-color
برای پیدا کردن وابستگی های پکیج با خروجی
jakub-onderka/php-console-color v0.2
└──jakub-onderka/php-console-highlighter v0.4 (requires jakub-onderka/php-console-color ~0.2)
├──nunomaduro/collision v3.0.0 (requires jakub-onderka/php-console-highlighter 0.3.*|0.4.*)
│ └──artiash/portal dev-master (requires (for development) nunomaduro/collision 3.0)
└──psy/psysh v0.9.12 (requires jakub-onderka/php-console-highlighter 0.3.*|0.4.*)
└──laravel/tinker v1.0.10 (requires psy/psysh 0.7.*|0.8.*|0.9.*)
└──artiash/portal dev-master (requires laravel/tinker ^1.0)
روبرو میشید .پکیج nunomaduro/collision و همینطور tinker از dependency های laravel هستن که ازین پکیج استفاده میکنن . ارور مربوط به پکیج nunomaduro/collision هست و طبق این توئیت توسط ناشر پکیج ، این ایراد رفع شده .
پس با اجرای دستور
composer update
بایست این ارور رفع بشه .امیدوارم کمک کرده باشم آرزوی موفقیت!
آیا مایل به ارسال نوتیفیکیشن و اخبار از طرف راکت هستید ؟