area17 / twill-capsule-homepages

A Twill Capsule to create a Home page for your website
MIT License
6 stars 2 forks source link

command twill:capsule is not defined #1

Open joeyramone76 opened 3 years ago

joeyramone76 commented 3 years ago

Hi to all, i'm trying to install capsule-homepages but I'm unable to complete the process. I've followed this steps:

where am I wrong?

antonioribeiro commented 3 years ago

Could you please try again. Some steps to take

<?php

return [
    'capsules' => [
        'list' => [
            [
                'name' => 'Homepages',

                'enabled' => true,
            ],
        ]
    ]
];
Route::get('/', fn() => print('This is the homepage'))->name('front.home');

And I believe it should work.

Thanks for reporting this.

Cheers!

joeyramone76 commented 3 years ago

Hi @antonioribeiro , Thank you so much. The problem with artisan command it's now resolved, but now I have another error after login in admin area Route [admin.homepages.landing] not defined it seems that Laravel does not consider routes and controllers under app / Twill / Capsules / Homepages I miss some steps with Capsules installation?

cambad commented 1 year ago

Hi @joeyramone76!

Did you get the capsule to work?

I just made a change that Antonio merged with this change, and now there is no need to create a folder (the error has been fixed), and I no longer have the error of the route not being defined. I updated the Readme as well to rework the installation.

Do not hesitate to tell me if you still have a problem!

Cheers ✌🏽