mentors

mentors Git Source Tree


Root/app/controllers/HomeController.php

<?php

class HomeController extends BaseController {

	/*
	|--------------------------------------------------------------------------
	| Default Home Controller
	|--------------------------------------------------------------------------
	|
	| You may wish to use controllers instead of, or in addition to, Closure
	| based routes. That's great! Here is an example controller method to
	| get you started. To route to this controller, just add the route:
	|
	|	Route::get('/', 'HomeController@showWelcome');
	|
	*/

	public function index()
	{
		if(Auth::check())
		{
			return Redirect::route('user'); 
		}
		
		return View::make('home');
	}

	public function showContact()
	{
		return View::make('contact');
	}

	public function contact()
	{
		$data = Input::all();
	}

}

Archive Download this file

Branches

Number of commits:
Page rendered in 0.13591s using 11 queries.