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

Faiza's avatar
Level 1

Build API using laravel for existing database with data

Hi everyone

I want to ask, if I already have a database with data and I want to create an API based on that database do I still compulsory to use the pre created User model? If so, do I need to migrate users table into my database? And then, do I need to copy existing user login details into that users table? Or is there any way I could do if I don't want to use the pre created User model and users table?

0 likes
2 replies
Faiza's avatar
Level 1

@sos99 Okay I'll take a look on it. Thank you for your suggestion :)

Please or to participate in this conversation.