allamo123 / laravel-grapes

Laravel Grapes is a library for laravel framework, that offer cms drag and drop page builder for frontend which support all Laravel functionality and help user to change all frontend and content just in simple clicks.
https://github.com/allamo123/laravel-grapes
MIT License
160 stars 33 forks source link

Frontend routes don't exist #20

Open rafa-lobo opened 1 year ago

rafa-lobo commented 1 year ago

Hi, I have been testing the package (which is great, the simplest and most effective one I've browsed so far), but I can't seem to be able to load the frontend pages. I am able to create the pages, save them to the DB, and everything else, but when I access the desired route it returns 404.

My config file is:

return [
    // routes configurations
    'builder_prefix' => 'builder', // prefix for builder

    'middleware' => null, // middleware for builder

    'frontend_prefix' => '', // prefix for frontend

    /* Define additional translation languages. */
    'languages' => ['pt'],

];

I have created a page with slug build-test:

image

But when I enter the page I get 404 (no routes registered as well): http://localhost/build-test

Am I missing something here? Should I manually create the controllers? Nothing mentions this in the docs.

anditriana commented 1 year ago

It seems that the FrontendController is empty so it is not rendering anything I can get it working by manually create a controller and a view to display di html output

core45 commented 6 months ago

@anditriana That is great. Can you share an example of the controller which works for you please?