practice the example of Laravel 4 Cookbook step by step