src/Providers/RouteServiceProvider.php
public function boot()
    {
        parent::boot();

        if (Request::is('*/contact/contact/*')) {
            Route::bind('contact', function ($contact) {
                $contactrepo = $this->app->make('Litecms\Contact\Interfaces\ContactRepositoryInterface');
                return $contactrepo->findorNew($contact);
            });
        }

    }
public function boot()
    {
        parent::boot();

        if (Request::is('*/contact/contact/*')) {
            Route::bind('contact', function ($contact) {
                $contactrepo = $this->app->make('Litecms\Contact\Interfaces\ContactRepositoryInterface');
                return $contactrepo->findorNew($contact);
            });
        }

    }
Define your route model bindings, pattern filters, etc.

@param   \Illuminate\Routing\Router  $router
@return void