Laravel Logout Function In Javascript