code: public function boot()
      {
          parent::boot();
  
          if (Request::is('*/forum/category/*')) {
              Route::bind('category', function ($category) {
                  $categoryrepo = $this->app->make('Litecms\Forum\Interfaces\CategoryRepositoryInterface');
                  return $categoryrepo->findorNew($category);
              });
          }
  
          if (Request::is('*/forum/question/*')) {
              Route::bind('question', function ($question) {
                  $questionrepo = $this->app->make('Litecms\Forum\Interfaces\QuestionRepositoryInterface');
                  return $questionrepo->findorNew($question);
              });
          }
  
          if (Request::is('*/forum/response/*')) {
              Route::bind('response', function ($response) {
                  $responserepo = $this->app->make('Litecms\Forum\Interfaces\ResponseRepositoryInterface');
                  return $responserepo->findorNew($response);
              });
          }
  
      }
docs: Define your route model bindings, pattern filters, etc.
  
  @param   \Illuminate\Routing\Router  $router
  @return void