Skip to content

Instantly share code, notes, and snippets.

@kejyun
Created January 26, 2015 14:56
Show Gist options
  • Save kejyun/2f54d67885e7ea788336 to your computer and use it in GitHub Desktop.
Save kejyun/2f54d67885e7ea788336 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
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