<?php

namespace App\Controllers;

class Home extends BaseController
{
    public function index()
    {
        if( session()->get('logged_in'))
            return redirect()->to('/user/dashboard'); 
        else
            return redirect()->to('/user/login');
    }
}
