Support the ongoing development of Laravel.io →
Configuration Database Laravel.io
Last updated 2 years ago.
0

Whats the name of your table?

This is how I parse the documentation: https://laravel.com/docs/5.2/migrations#creating-columns

Lets say for example the name of your table is "users", and the column you wanna add is "location". I'd try this

Schema::table('users', function ($table) {
    $table->string('location');
});
0

thank you for given reply !

but not clear about your answer . actual my question is : need to create migrations , but laravel not support the Geometric Types (Box,Circle,Line,Line Segment,Path,Point, Polygon) when using the postgresql . how to do this ?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

kalyan kalyan Joined 25 Mar 2016

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.

© 2024 Laravel.io - All rights reserved.