What is he command within Laravels' php artisan tinker that shows tables and/or structure of those tables?
To get all tables, use this:$tables = \DB::select('show tables');
.
To get all columns of table, use this:$columns = \Schema::getColumnListing('<table_name>');
For sqlite, use:
DB::select('SELECT NAME FROM sqlite_master WHERE type="table"');
For me it was
$flights = Flight::all();
that finally gave me the data from my table https://laravel.com/docs/8.x/eloquent#retrieving-models
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With