vendredi 23 octobre 2015

Laravel: How to get table column name, its type and lenght

Is there any method available in Laravel 5/5.1, through which we can get the Table columns name, its type and length, Means table meta data?

eg:

Name    |    Type    |    Length

ID      |    Integer |    11
Name    |    varchar |    100
Email   |    varchar |    100
Password|    md5     |    82
Address |    tinytext|    
DOB     |    date    |    
Status  |    enum(0,1)|



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire