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

Tinker is not a shell command. What Tinker at you to do is load up models and what's not in pure php without going through the controller while having the app stack

So use something like this: http://sqlitebrowser.org/

If you insist on using In tinker, you can always fetch data from your models with a User::all(); and it will show you which columns are attached to that table.

Of course this won't work if you have added some accessor or hidden some fields from the get of models hence why I proposed an outside gui which is how you would Explore a normal db anyways

0

thank your for responding.

I actually realized afterwards that the tool i was looking for is sqlite intself. so... something like "sqlite3 /database/database.sqlite" is what i needed.

I also tried the sqlite database browser and its really helpful.

Thanks again.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Octaviu5 octaviu5 Joined 24 May 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.