Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahinkle/vscode-laravel-model-snippets
Quickly get up and running with your Laravel Models with this VS Code extension.
https://github.com/ahinkle/vscode-laravel-model-snippets
laravel vscode vscode-extension
Last synced: 19 days ago
JSON representation
Quickly get up and running with your Laravel Models with this VS Code extension.
- Host: GitHub
- URL: https://github.com/ahinkle/vscode-laravel-model-snippets
- Owner: ahinkle
- License: mit
- Created: 2018-07-22T17:27:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-16T14:49:37.000Z (about 4 years ago)
- Last Synced: 2023-05-25T20:25:54.857Z (over 1 year ago)
- Topics: laravel, vscode, vscode-extension
- Homepage: https://marketplace.visualstudio.com/items?itemName=ahinkle.laravel-model-snippets
- Size: 10.1 MB
- Stars: 9
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
Laravel Model Snippets
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](images/example.gif)
## 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](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please make sure to read the [Contributing Guide](CONTRIBUTING.md) before making a pull request.
Thank you to all the people who already contributed to to Laravel Model Snippets!