janmoes
7 months ago
1233
8
Nova

Laravel Nova-flexible-content

Posted 7 months ago by janmoes

I was looking for a flexible content solution for a laravel project. For example, if i have a HomeController and i want to show two types of content on the page, first a gallery of images and a couple of posts. i would have done this:


public function index(){
    $images = Images::all();
    $posts = Posts::all();

    return view('home')->with(compact('images', 'posts'));
}

When i was looking for a solution i found out about nova, but didn't understand the docs very well. What i'm trying to accomplish is a restricted page, where i can add/edit/delete all the content for the homepage, so images, custom text fields, adding video urls etc. Is that possible?

Please sign in or create an account to participate in this conversation.