Return to Snippet

Revision: 59586
at September 19, 2012 00:49 by rafaelfragosom


Initial Code
Route::get('(:any)', function($username){
	$user = User::where_username($username)->first();
	if ($user) {
		return "The user exist, show the profile.";
	}
	return Response::error('404');
});

Initial URL


Initial Description
This is a route that ables the website to show the user's profile to the world.

Initial Title
Laravel User Profile

Initial Tags
php

Initial Language
PHP