Db to api package for laravel