original_string: public function findByLocale($id, $locale)
      {
          return $this->model->with(['type', 'contents' => function($query) {
                          $query->with('lang');
                      }])->where('id', $id)->first();
      }
code: public function findByLocale($id, $locale)
      {
          return $this->model->with(['type', 'contents' => function($query) {
                          $query->with('lang');
                      }])->where('id', $id)->first();
      }
code_tokens: public function findByLocale ( $ id , $ locale ) { return $ this -> model -> with ( [ 'type' , 'contents' => function ( $ query ) { $ query -> with ( 'lang' ) ; } ] ) -> where ( 'id' , $ id ) -> first ( ) ; }
docstring: find model by locale
  
  @param mixed $id
  @param String $locale
  @return Model
docstring_tokens: find model by locale