Laravel php tinker command to show tables and structures? -


what command within laravels' php artisan tinker shows tables and/or structure of tables?

to tables, use this:
$tables = \db::select('show tables');.

to columns of table, use this:
$columns = \schema::getcolumnlisting('<table_name>');


Comments

Popular posts from this blog

c# - Class in a list -

mysql - Django database model for my website -

ios - How to run a segue on itself OR another viewController -