PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

Voyager Pulling Data From API

jacky

Dec 7th, 2020 11:09 PM

Hello, I am building an Admin panel for a web platform and instead of pulling data from Database like how Voyager is working now, I am wondering if there is way that I could set it up to have Voyager pull data from API from where data is stored in a more secured location. I would assume that I will need to build a custom controller where I implement the method to call the API and parse the response to voyager know which attributes to display under which parameter, but I am totally lost in the source code to figure out where and how I should do it. Any help is appreciated!

bobbyiliev

Dec 9th, 2020 03:21 PM

Hi there,

Yes indeed, you would need to create a custom Voyager controller.

I would recommend going through the documentation here on how to do that:

https://voyager-docs.devdojo.com/customization/overriding-files

Let me know if anything is not clear!

Regards, Bobby