Skip to content

Instantly share code, notes, and snippets.

@mikeybeck
Last active September 30, 2018 22:39
Show Gist options
  • Select an option

  • Save mikeybeck/ce740aa75ce5b569b6d9bd7608b44ec0 to your computer and use it in GitHub Desktop.

Select an option

Save mikeybeck/ce740aa75ce5b569b6d9bd7608b44ec0 to your computer and use it in GitHub Desktop.
[Get rows from database table in Tinker] #SQL #tinker
DB::select('SELECT * FROM table WHERE column = 'value' ORDER BY id LIMIT limit')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment