This file contains hidden or 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
Git add . | |
Move to Stage | |
Git restore --staged | |
Move stage file or code to unstage | |
Git restore | |
Remove last change from stage (first your code must move to stage) | |
Git status -s |
This file contains hidden or 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
@Configuration classes is to be sources of bean definitions for the Spring IoC Container. | |
@Component is an annotation that allows Spring to automatically detect our custom beans. | |
// create new bean for your class | |
@Bean | |
// The scope of a bean defines the life cycle and visibility of that bean in the contexts we use it. | |
//we have this scope: | |
//singleton scoped beans are scoped to a single application context only. | |
//singleton @Scope("singleton") //create class once | |
//prototype @Scope("prototype ") //create class affter every request Autowire | |
//request @RequestScope |
This file contains hidden or 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
Artisan | |
// Displays help for a given command | |
php artisan --help OR -h | |
// Do not output any message | |
php artisan --quiet OR -q | |
// Display this application version | |
php artisan --version OR -V | |
// Do not ask any interactive question | |
php artisan --no-interaction OR -n | |
// Force ANSI output |