Skip to content

Instantly share code, notes, and snippets.

@rmasters
Created March 11, 2014 10:52
Show Gist options
  • Save rmasters/9483488 to your computer and use it in GitHub Desktop.
Save rmasters/9483488 to your computer and use it in GitHub Desktop.
<?php
class PeopleController extends Controller {
public function index() {
return View::make('people.index', ['people' => []]);
}
}
class PeopleController extends Controller {
protected $view;
public function __construct(View $view) {
$this->view = $view;
}
public function index() {
return $this->view->make('people.index', ['people' => []]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment