AntonyPL - https://twillcms.com/docs/dashboard/...
# ❓questions
a
https://twillcms.com/docs/dashboard/index.html => How can enambel fe. Pages Capsules on Dashboard ?
p
You can do it like this, in your twill.php add the dashboard module config (note the repository option)
Copy code
php
'dashboard' => [
        'modules' => [
            'pages' => [
                'name' => 'pages', // module name
                'repository' => 'App\Twill\Capsules\Pages\Repositories\PageRepository',
                'label' => 'pages',
                'label_singular' => 'page',
                'count' => true,
                'create' => true,
                'activity' => true,
            ]
        ]
    ],
But you also need to set-up the morphMap for pages in AppServiceProvider::boot()
Copy code
php
Relation::morphMap([
            'pages' => 'App\Twill\Capsules\Models\Page',
        ]);
a
thank you, i will check this!