Skip to content

jinoantony/vscode-laravel-model-snippets

 
 

Repository files navigation

About Laravel Model Snippets

Visual Studio Marketplace Visual Studio Marketplace

Quickly get your models up and running with Laravel Model Snippets. Start with Model:: then the shortcut of what you are looking for. Example: Model::d will return the muted dates attribute.

Features

Example

Snippet Purpose
Model::t Table
Model::pk Primary Key
Model::ts Timestamps
Model::df Date Format
Model::con Database Connection
Model::c Casts Attributes
Model::f Mass Assignment (Fillable)
Model::g Guard Attributes
Model::d Dates
Model::b Boot
Model::s Local Scope
Model::oo One to One Relationship
Model::bt Belongs To Relationship
Model::om One to Many Relationship
Model::mm Many to Many Relationship
Model::btm Belongs To Many Relationship
Model::hmt Has Many Through Relationship
Model::hot Has One Through Relationship (5.8)
Model::h Hidden Attributes
Model::v Visible Attributes
Model::a Appends
Modal::tc Relationship Touches
Model::i Incrementing
Modal::pp Per Page Pagination

Changelog

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

About

Quickly get up and running with your Laravel Models with this VS Code extension.

Resources

Stars

Watchers

Forks

Packages

No packages published