laravel-logout

1.1.0 • Public • Published

laravel-logout

Package for Laravel Logout

Installation

npm install laravel-logout

This package need X-CSRF-TOKEN, add this code to your header template

<meta name="csrf-token" content="{{ csrf_token() }}">

In your app.js, add this code

require('laravel-logout');

Usage

In your blade template

<a laravel-logout>Logout</a>

The default logout url use logout route from laravel ('/logout'). If you have different logout url, use data-action attribute

<a laravel-logout data-action="your-logout-url">Logout</a>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i laravel-logout

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

3.35 kB

Total Files

4

Last publish

Collaborators

  • arispati