Code for part 5, adding resource controller for pages.

Signed-off-by: crynobone <crynobone@gmail.com>
use 2.0.0-BETA4

Signed-off-by: crynobone <crynobone@gmail.com>
fixed eloquent relationship.

Signed-off-by: crynobone <crynobone@gmail.com>