I do not use "repositories" as they are probably meant to not even sure that what mine are called, I like the idea of calling them service providers, a class with methods that are action specific, i have one for creating and updating files, one for setting up form data before saving the model ect. I think of it that if i look at my controller
//it should read easy
use my/AssetCreator;
use my/FormCleaner;
public function index(){
$generateUserPhoto = new AssetCreator();
if($generateUserPhoto->resize()){
return Redirect::back()->with('PhotoSuccess',$generateUserPhoto->success);
}else{
//error stuff here
}
}
The thing is the variable names ect make your code read like a story.
Obviously he does it all fancy dependency injection like but I just have not gotten to the point of trying to understand App::make()