Skip to content

Access Tracking Table data #180

Discussion options

You must be logged in to vote

Hey! The AshAllenDesign\ShortURL\Models\ShortURL class extends the Illuminate\Database\Eloquent\Model class, so you can interact with it like other models in your application. You can also use the visits method on the model to access the rows in the short_url_visits table that are associated with that Short URL (e.g. - $shortUrl->visits).

I hope this helps a bit? 😄

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by FarhadHussain21st
Comment options

You must be logged in to vote
1 reply
@ash-jc-allen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants