I need to create custom presenters (Displaying Menus)



  • I'm using Asgardcms, i need to create a custom presenter . I create a class that extends the Pingpong\Menus\Presenters\Presenter abstract class in my project, but i can't add it to the package configuration (config/packages/pingpong/menus/config.php), because i can't find it.


  • Global Moderator

    @alzolarma

    Please, next time choose appropriate sub-forum. (Moved from Announcements to Question).

    As for your question, you have to publish config for the package:

    • for asgard v1:
      -- php artisan vendor:publish --provider="Pingpong\Modules\ModulesServiceProvider"
    • for asgard v2:
      -- php artisan vendor:publish --provider="Nwidart\Modules\LaravelModulesServiceProvider"

Log in to reply
 

Looks like your connection to AsgardCms was lost, please wait while we try to reconnect.