Showing posts with label schema builder. Show all posts
Showing posts with label schema builder. Show all posts

Tuesday, April 4, 2017

How to add and drop indexes in Laravel schema builder

On your laravel database migration you can define indexes for each table that you create, for example you can add primary key, unique value,...

How to check table column exist or not in Laravel

Besides the 'hasTable' static method, you also have 'hasColumn' method which can check column exist or not on database table...

How to check table exist or not in Laravel

Is it possible to check existence of database table in laravel code? the answer is yes, it is possible to check whether a table already exis...

Laravel 4.2 schema table column types

These are list of schema table column types that you can use when creating database migration on laravel 4.2, most of these column types als...

Tuesday, April 19, 2016

How to create database migration in Laravel 4.2

To create and modify table in laravel we can use migration, it's quite simple and easy to use, there is dedicated artisan command for cr...