Answers for "how to make laravel login logout package"

PHP
3

laravel logout

//make a route as a post and button should look like this
 <form action="{{ route('logout') }}" method="post">
       @csrf
       <button type="submit">Logout</button>
</form>
//Controller will be like this.
public function store(){
        auth()->logout();
        return redirect()->route('home');
    }
Posted by: Guest on September-04-2021
0

Auth log out laravel

Auth::logout();
Posted by: Guest on August-11-2020

Code answers related to "how to make laravel login logout package"

Browse Popular Code Answers by Language