template programming pattern with laravel