Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mdhelal's avatar

Media Manager in InertiaJs, React.

I'm using Laravel, InertiaJs, ReactJs. How to add File Manager Like WordPress Media Manager.

Like this: https://prnt.sc/dnOhmFLiqHKO

Please Help me.

0 likes
4 replies
gych's avatar

Create a migration, model and controller for the uploads.

When a new file is uploaded add its info to the uploads table.

Create a React component to upload and display the media and where the uploads can be searched, selected, and deleted.

When opening the media manager return the paginated uploads from the database table via the created controller.

Just start working on it, step by step and if you have more questions don't hesitate to reach out.

1 like
mdhelal's avatar

@gych Thank you for your answer. Can you give me any demo code link. It will be very helpful for me.

Thank you.

gych's avatar

@mdhelal Sadly I can't give you a demo link of this but it could work exactly the same as wordpress media manager you just have to create it yourself

UniSharp filemanager is not available for Laravei with React and Inertia

Please or to participate in this conversation.