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
What could have happened? After adding 'admin' in front of the assets. It didn't work
5:30
you probably put admin/assest in index.html. you should put it in home.blade.php
This is working perfectly especially if one followed the hospital project. Thanks and kudos bro
There is a problem in the admin button like there is a white background coming to the admin button, anysolution??
Thank you very much, your videos help me a lot
When we integrate template, should we find all "src" and put admin/ on them?
Yes
clear cut explanation, thank you
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
very gd tutorial. Respect u.
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
use this instead of x-app-layout
@csrf
When x-app- layout added no logout options showing
use this instead of x-app-layout
@csrf
Help, Admin template links aren’t downloading (here on 2024)
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.
am using laravel 10 in logout it give an error help pls
when i am passing x layout amin not showing
same issue
use this instead of x-app-layout
@csrf
why are the icons on the sidebar not working
you good!
Thank you 🎉🎉🎉
Lesson5:th-cam.com/video/7PSd9uM_JgA/w-d-xo.html
add admin before assets never works
then what to do?
Remove the assets@@AsthEtiX_Girl
you should change it in home.blade.php not index.html
Bro log out is not working please help me bro
use this instead of x-app-layout
@csrf
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
I dont under stand about ''
cleared! th-cam.com/video/MlKcDwGNr28/w-d-xo.html
😄
it will give you name profile and logout syestem
@@LearnwithAkram39 IT DOSENT WORK FOR ME IT SAYS THE GET METHOD IS NOT SUPPORTED
@@trillionairepath9070 get::post set route
Bro make full tutorial fast