Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Laravel Model SnippetsNew to Visual Studio Code? Get it now.
Laravel Model Snippets

Laravel Model Snippets

Andy Hinkle

|
189,804 installs
| (2) | Free
Quickly get up and running with your Laravel Models
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Laravel Model Snippets

Visual Studio Marketplace Version Rating

Improve your workflow with Laravel Model Snippets. Start with Model:: then the shortcut of what you are looking for within your model.

For example, Model::d will return the muted dates attribute:

Example

Features

Snippet Purpose
Model::ap Appends
Model::ac Accessor
Model::b Boot
Model::bt Belongs To Relationship
Model::btm Belongs To Many Relationship
Model::c Casts Attributes
Model::cat Created At
Model::con Database Connection
Model::d Dates
Model::dat Deleted At
Model::de Dispatches Events
Model::df Date Format
Model::f Mass Assignment (Fillable)
Model::g Guard Attributes
Model::h Hidden Attributes
Model::hmt Has Many Through Relationship
Model::hot Has One Through Relationship
Model::i Incrementing
Model::mm Many to Many Relationship
Model::mu Mutator
Model::om One to Many Relationship
Model::oo One to One Relationship
Model::pk Primary Key
Model::pp Per Page Pagination
Model::s Local Scope
Model::t Table
Model::tc Relationship Touches
Model::ts Timestamps
Model::uat Updated At
Model::v Visible Attributes

Changelog

Please see the CHANGELOG for more information on what has changed recently.

Contributing

Please make sure to read the Contributing Guide before making a pull request.

Thank you to all the people who already contributed to to Laravel Model Snippets!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft