Skip to content

mhmdomer/laravel-snippets

Repository files navigation

laravel-snippets

installation

Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.

ext install m7md3omer.laravel-relationship-snippets

OR

go to the extension page to install

Features

This snippet extension provides you with quick snippets for generating laravel relationship functions.


abbreviation code snippet generated
hasOne Generates a hasOne relationship
belongsTo Generates a belongsTo relationship
hasMany Generates a hasMany relationship
belongsToMany Generates a belongsToMany relationship
hasManyThrough Generates a hasManyThrough relationship
hasOneThrough Generates a hasOneThrough relationship
morphOne Generates a morphOne relationship
morphTo Generates a morphTo relationship
morphMany Generates a morphMany relationship
morphToMany Generates a morphToMany relationship
morphedByMany Generates a morphedByMany relationship

relationship-snippet

Requirements

This extension works only with php files.

Contribution

Feel free to add more snippets related to laravel relationships.

Make sure that you checkout to a new feature branch before you start adding your snippets.

About

A Vscode extension that generates boilerplate code for laravel relationships, test classes, and test functions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published