Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel route logout

<?php

namespace AppHttpControllers;

use IlluminateHttpRequest;
use IlluminateSupportFacadesAuth;
use IlluminateSupportFacadesSession;

class LogoutController extends Controller
{
    /**
     * Log out account user.
     *
     * @return IlluminateRoutingRedirector
     */
    public function perform()
    {
        Session::flush();
        
        Auth::logout();

        return redirect('login');
    }
}
Comment

PREVIOUS NEXT
Code Example
Php :: laravel reduce 
Php :: php text to html 
Php :: log data into file php 
Php :: laravel try catch example 
Php :: laravel query latest 
Php :: validate password laravel 
Php :: first name of string php 
Php :: cloudflare ip country 
Php :: create a wp plugin 
Php :: send email template via php 
Php :: laravel 8 get app folder 
Php :: delete bunch of rows in laravel 
Php :: wordpress get paragraph of content 
Php :: laravel image validate 
Php :: yii2 set cookie 
Php :: how to get data from a table in laravel 
Php :: php return a json response 
Php :: Modes of file reading php 
Php :: delete directory from laravel storage 
Php :: where is php.ini file in ubuntu 
Php :: php if else wordpress 
Php :: number_format reverse php 
Php :: get data based on date in laravel 
Php :: laravel get single column value 
Php :: laravel event generate 
Php :: php timezone 
Php :: Laravel eloquent get data without duplicates 
Php :: get post php 
Php :: PHP print — Output a string 
Php :: add item to array in php 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =