Support the ongoing development of Laravel.io →
posted 11 years ago
Database

I'm currently using the schema builder to create a database. The only thing I'm missing is a method to create a new schema in my Postgress database.

Is this not (yet) supported by Laravel or did I miss some information in the documentation? It would be realy nice to have because now I have to manually created all the schemas.

Or... do I need to fall back on DB::RAW for this to work?

Last updated 3 years ago.
0

Not much information on PGSQL with Laravel. A shame.

I believe DB:raw is the first thing that comes to my mind as well. There is DB::statement as well ... I don't know the difference. But DB:raw can be SQL-injected ... I wonder if DB:statement is subject to the same problem?

And then there is this - https://github.com/pacuna/Laravel-PGSchema

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

mikevrind mikevrind Joined 1 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.