Select an action Admin Profile Logout document.getElementById('actionSelect').addEventListener('change', function() { const selectedValue = this.value; if (selectedValue === 'logout') { // Create a form for logging out const logoutForm = document.createElement('form'); logoutForm.method = 'POST'; logoutForm.action = '{{ route('logout') }}'; const csrfInput = document.createElement('input'); csrfInput.type = 'hidden'; csrfInput.name = '_token'; csrfInput.value = '{{ csrf_token() }}'; logoutForm.appendChild(csrfInput); document.body.appendChild(logoutForm); logoutForm.submit(); } else if (selectedValue) { window.location.href = selectedValue; } }); separate js from this code make new js on assets call him form.js and put a link on scripts.blade.js and the form put in the header do not forget to build that links dashboard.blade.php and logout.blade.php
Thank you very much, your videos help me a lot
clear cut explanation, thank you
This is working perfectly especially if one followed the hospital project. Thanks and kudos bro
very gd tutorial. Respect u.
There is a problem in the admin button like there is a white background coming to the admin button, anysolution??
What could have happened? After adding 'admin' in front of the assets. It didn't work
5:30
Good tutorial. Keep it up. However, on the small screens, the sidebar doesn't show. How do I do that so the sidebar should be mobile Responsive.
Sir, why does everything works fine in your system but does not work in our system. I am talking about the admin dropdown in header
Select an action
Admin
Profile
Logout
document.getElementById('actionSelect').addEventListener('change', function() {
const selectedValue = this.value;
if (selectedValue === 'logout') {
// Create a form for logging out
const logoutForm = document.createElement('form');
logoutForm.method = 'POST';
logoutForm.action = '{{ route('logout') }}';
const csrfInput = document.createElement('input');
csrfInput.type = 'hidden';
csrfInput.name = '_token';
csrfInput.value = '{{ csrf_token() }}';
logoutForm.appendChild(csrfInput);
document.body.appendChild(logoutForm);
logoutForm.submit();
} else if (selectedValue) {
window.location.href = selectedValue;
}
});
separate js from this code make new js on assets call him form.js and put a link on scripts.blade.js and the form put in the header do not forget to build that links dashboard.blade.php and logout.blade.php
When we integrate template, should we find all "src" and put admin/ on them?
Yes
you good!
When x-app- layout added no logout options showing
use this instead of x-app-layout
@csrf
I was having issues with the logout button for admin, it is there but it is misplaced, and I am unable to fix it
did u solve it?me too have prob in logout
Thank you 🎉🎉🎉
am using laravel 10 in logout it give an error help pls
why are the icons on the sidebar not working
when i am passing x layout amin not showing
same issue
Bro log out is not working please help me bro
Bro make full tutorial fast
add admin before assets never works
then what to do?
Remove the assets@@AsthEtiX_Girl
Hola, la plantilla admin?
Template download link in the description
Thanks.
Your project is interesting.
How often will you upload videos?
One video everyday
Excellent
Lesson5:ruclips.net/video/7PSd9uM_JgA/видео.html
I dont under stand about ''
cleared! ruclips.net/video/MlKcDwGNr28/видео.html
😄
it will give you name profile and logout syestem
@@CodingEscort IT DOSENT WORK FOR ME IT SAYS THE GET METHOD IS NOT SUPPORTED
@@trillionairepath9070 get::post set route