public static function sandbox() { // Testaa koodiasi täällä $pokemon = Pokemons::find(1); $pokemons = Pokemons::all(); Kint::dump($pokemon); Kint::dump($pokemons); }
public static function index() { $pokemons = Pokemons::all(); View::make('Pokemons/index.html', array('pokemons' => $pokemons)); }