It\'s pretty straightforward as it\'s the most basic thing but I don\'t know what I\'m missing:
Having a model called Site
Site
I\'m using Eloquent O
You're not returning your model.
var_dump prints output and returns nothing.
var_dump
do this instead:
dd($oSite); // stands for var_dump and die - a helper method
and even better, simply return the model:
return $oSite; // will be cast to JSON string