- SingleApiControllerTrait.php是给控制提供增删改查功能
Declaring class properties or methods as static makes them accessible without needing an instantiation of the class. A property declared as static can not be accessed with an instantiated class object (though a static method can).
self - self from the root
parent - parent of the class
static - true self
for exact class, static
is more agile than self
, super useful for inheritance issues
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
{"lastUpload":"2018-03-13T11:41:19.205Z","extensionVersion":"v2.9.0"} |
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
{ | |
/* | |
// Place your snippets for PHP here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, ${id} and ${id:label} and ${1:label} for variables. Variables with the same id are connected. | |
// Example: | |
"Print to console": { | |
"prefix": "log", | |
"body": [ | |
"console.log('$1');", |
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
{"lastUpload":"2020-02-11T15:12:25.221Z","extensionVersion":"v3.4.3"} |
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
{"lastUpload":"2020-03-14T22:03:45.785Z","extensionVersion":"v3.4.3"} |
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
{ | |
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", |
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
Show hidden characters
/* ---------------------------------------- | |
Bootstrap 4 | |
HTML, PHP, BLADE snippets | |
Alerts | |
042419 | |
---------------------------------------- */ | |
{ | |
"Boostrap 4: Alert": { |
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
import Vue from 'vue'; | |
import bAlert from 'bootstrap-vue/es/components/alert/alert'; | |
import bBadge from 'bootstrap-vue/es/components/badge/badge'; | |
import bBreadcrumb from 'bootstrap-vue/es/components/breadcrumb/breadcrumb'; | |
import bBreadcrumbItem from 'bootstrap-vue/es/components/breadcrumb/breadcrumb-item'; | |
import bBreadcrumbLink from 'bootstrap-vue/es/components/breadcrumb/breadcrumb-link'; | |
import bButton from 'bootstrap-vue/es/components/button/button'; | |
import bButtonClose from 'bootstrap-vue/es/components/button/button-close'; | |
import bButtonGroup from 'bootstrap-vue/es/components/button-group/button-group'; | |
import bButtonToolbar from 'bootstrap-vue/es/components/button-toolbar/button-toolbar'; |