سلام و درود
من از لاراول 10 استفاده میکنم
الان میخواستم پکیج uxweb/sweet-alert از
https://github.com/uxweb/sweet-alert
نصب کنم، ولی با خطاهای زیر مواجه شدم
Problem 1
- uxweb/sweet-alert[1.0.0, ..., 1.0.7] require illuminate/session ~5.0 -> found illuminate/session[v5.0.0, ..., v5.8.36] but these were not loaded, likely because it conflicts with another require.
- uxweb/sweet-alert[1.1.0, ..., 1.4.3, 2.0.0, ..., 2.0.1] require illuminate/support ~5.0 -> found illuminate/support[v5.0.0, ..., v5.8.36] but these were not loaded, likely because it conflicts with another require.
- uxweb/sweet-alert[2.0.2, ..., v2.0.3] require illuminate/support ~5.0|^6.0|^7.0 -> found illuminate/support[v5.0.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6] but these were not loaded, likely because it conflicts with another require.
- uxweb/sweet-alert 2.0.5 requires illuminate/support ~5.0|^6.0|^7.0|^8.0 -> found illuminate/support[v5.0.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires uxweb/sweet-alert * -> satisfiable by uxweb/sweet-alert[1.0.0, ..., 1.4.3, 2.0.0, ..., 2.0.5].
اینم فایل composer.json من
"require": {
"php": "^8.1",
"cviebrock/eloquent-sluggable": "^10.0",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel-lang/lang": "^12.21",
"laravel-lang/publisher": "^14.6",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
ممنون میشم اگه کسی میدونه راهنمایی کنه که چطوری نصب کنم.
مشکل از پیش نیازش رو نفهمیدم
انگار دیگه این پکیج پشتیبانی نمیشه
درود خوبی...
از کتابخانه Toastr استفاده کنید.
پیوند زیر:
https://b2n.ir/q35868
سلام
با cdn استفاده کن
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
swal({
title: "Good job!",
text: "You clicked the button!",
icon: "success",
});
سلام وقت بخیر دوست عزیز این پکیج منسوخ شده ودیگه پشتیبانی نمیشه میتونید از پکیج زیر استفاده کنید خیلی شبیه اون پکیج هست خودم از اون استفاده میکنم
https://realrashid.github.io/sweet-alert/install
خوشبختانه مستندات خیلی خوبی هم توی سایتش هست هم دقیق توضیح میده چجوری نصب کنی و چجوری توی پروژه ازش استفاده کنی
شاید پاسخ شما همینجا باشد