We have to pass protected $table = 'YOUR TABLE NAME'; in your respective Model

Example

                                        

namespace App;

use Illuminate\Database\Eloquent\Model;

class Login extends Model
{
    protected $table = 'admin';
    static function logout() {  
        if(session()->flush() || session()->regenerate()) {
            return true;
        }
    }
}

Suggest An Answer

No suggestions avaliable!