Closed timomch2 closed 5 years ago
Hi @timomch2 Can you share the alert code here?
Hello yes. i can. in My controller
return redirect('/admin/settings')->with('success', 'Password updated successfully');
in my Config/app.php in Providers
RealRashid\SweetAlert\SweetAlertServiceProvider::class,
in Aliases
'Alert' => RealRashid\SweetAlert\Facades\Alert::class,
in Master view
@include('sweetalert::alert')
In Kernel middlewareGroups
\RealRashid\SweetAlert\ToSweetAlert::class
The code below gives the error in the image below else{ toast('Password update failed','error','top-right'); return redirect('/admin/settings');
}
On Wed, 2 Jan 2019 at 11:09, Rashid Ali notifications@github.com wrote:
Hi @timomch2 https://github.com/timomch2 Can you share the alert code here?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/realrashid/sweet-alert/issues/29#issuecomment-450805179, or mute the thread https://github.com/notifications/unsubscribe-auth/Af928TLz53Ifo7OUIf4O_neNirTu1pw2ks5u_Gk4gaJpZM4Zl9Fy .
Hi, I used the same code as you mention above but i didn't get any input field on alert or toast.
As you can see
Please confirm the version of sweet-alert or follow the below mention steps.
To get started with SweetAlert2, use Composer to add the package to your project's dependencies:
composer require realrashid/sweet-alert
make sure you get the v1.1 in you composer.json
"realrashid/sweet-alert": "^1.1"
then run the below command
php artisan vendor:publish --provider="RealRashid\SweetAlert\SweetAlertServiceProvider"
and include the sweet-alert view in your master layout before closing body tag.
....
@include('sweetalert::alert')
</body>
after completing all steps must run composer dump-autoload
command.
Let me know if the above steps solve your issue.
I have done everything you adviced sir, but its still the same. Here is my composer.json "laracasts/flash": "^3.0", "laravel/framework": "5.7.*", "laravel/tinker": "^1.0", "mercuryseries/flashy": "^1.0", "realrashid/sweet-alert": "^1.1" },
Is it possible to share your repo or any remote assistance?
You mean via something like GitLab? If it's that yes.
On Fri, Jan 4, 2019, 20:42 Rashid Ali <notifications@github.com wrote:
Is it possible to share your repo or any remote assistance?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/realrashid/sweet-alert/issues/29#issuecomment-451514898, or mute the thread https://github.com/notifications/unsubscribe-auth/Af928dNMDHXFmcb2Whr8m9a93th4R14aks5u_5JrgaJpZM4Zl9Fy .
I only it in Gitlab. how should i share it from there? you got an account there? or some kinda mail i can send it straight?
Mail me at realrashid05@gmail.com
I have deep investigate your issue but i didn't get the same error as you mentioned and i also didn't get response from you regarding this issue so i'm closing the issue #29 .
please dont close. advice on how i can share my project
On Wed, 30 Jan 2019 at 12:40, Rashid Ali notifications@github.com wrote:
I have deep investigate your issue but i didn't get the same error as you mentioned and i also didn't get response from you regarding this issue so i'm closing the issue #29 https://github.com/realrashid/sweet-alert/issues/29 .
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/realrashid/sweet-alert/issues/29#issuecomment-458877483, or mute the thread https://github.com/notifications/unsubscribe-auth/Af928ZsEiV8FOW2J_Zl4DetqqctA1N85ks5vIWiigaJpZM4Zl9Fy .
--
Timothy Machome Software Developer at https://sharasolutions.com http://sharasolutions.com/ Tel: +254705837332
Can you Mail me at realrashid05@gmail.com?
Hi,
Goto resource/views/layouts/adminLayout/admin_design.blade.php
in line number 41 just comment out
{{-- <script src="{{ asset('js/backend_js/jquery.uniform.js')}}"></script> --}}
and this file select input will not show on toast or alert.
This is cause by Jquery.Uniform.js i don't no why.
thanks sir. but is there a work around i can use without disabling this file, because it is needed by many other elements. kindly.
On Sat, 2 Feb 2019 at 13:22, Rashid Ali notifications@github.com wrote:
Hi,
Goto resource/views/layouts/adminLayout/admin_design.blade.php
in line number 41 just comment out
{{-- --}}
and this file select input will not show on toast or alert.
This is cause by Jquery.Uniform.js i don't no why.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/realrashid/sweet-alert/issues/29#issuecomment-459953700, or mute the thread https://github.com/notifications/unsubscribe-auth/Af928b7CWrPulIA9J85F3SZN2PEavynMks5vJWb1gaJpZM4Zl9Fy .
--
Timothy Machome Software Developer at https://sharasolutions.com http://sharasolutions.com/ Tel: +254705837332
I've same issue with bootstrap-select plugin (https://developer.snapappointments.com/bootstrap-select/). When I deactivate this plugin, select box not showing.
problem was fixed thanks.
if you use bootstrap-select.js, it conflicts with sweetalert2 and shows a dropdown like this problem.
$('select').selectpicker()
just remove it or change your selector.
Goodluck :)
Description:
Alert notifications are coming with an option to select file when unnecessary.
Steps To Reproduce: