Skip to content

Instantly share code, notes, and snippets.

@kejyun
Created January 26, 2015 14:56
Show Gist options
  • Save kejyun/df448b0cffb7c98ef880 to your computer and use it in GitHub Desktop.
Save kejyun/df448b0cffb7c98ef880 to your computer and use it in GitHub Desktop.
<?php
// A nice simple route to show a pokemons name if we can find it using our Service
// 一個簡單的路由去顯示 pokemon 名稱,我們可以發現它使用我們的服務去取得 pokemon 資料
Route::any('/pokemon/{pokemon}', function($pokemon) {
return Pokemon::getPokemon($pokemon);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment