Created
March 7, 2023 13:33
-
-
Save normykinz/0d49b8460d7427adef62f668fd697499 to your computer and use it in GitHub Desktop.
VsCode Laravel Model Setters and Setters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Lavavel Model Getter and Setter": { | |
"prefix": "lgs", | |
"body": [ | |
"public function get$1(): $2 {", | |
"\treturn $$this->attributes['$3'];", | |
"}\n", | |
"public function set$1($2 $$value): void {", | |
"\t$$this->attributes['$3'] = $$value;", | |
"}" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment