title: Laravel Common Services Through Inheritance
body: <p>Question. </p>
  
  <p>I have a bunch of controllers that are using a certain set of services. I was wondering if it is possible / right to utilize inheritance to save me from having to inject them into controllers all the time. This is what I was planning on doing. </p>
  
  <pre><code>class MasterController extends controller{
      public function _construct(){
              $this-&gt;userData = App::make(UserService::class)
              $this-&gt;fooData = App::make(FooService::class)
      }
  }
  
  class UserController extends MasterController {
      public function __construct(BashService $bashService){
          parent::__construct();
          $this-&gt;bashData = $bashService;
      }
  
      public function someFunction(){
          $something = $this-&gt;userData-&gt;doUserSomething();
      }
  }
  </code></pre>
  
  <p>Is this a good idea to do? A really bad idea to do? Why or why not? I thought this might save me from having to inject common services again and again into controllers. </p>
  
  <p>Thanks!</p>