Skip to content

Instantly share code, notes, and snippets.

@nikonov91-dev
Last active May 12, 2023 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikonov91-dev/1a80d354cb2928e2986ea18ee31841e8 to your computer and use it in GitHub Desktop.
Save nikonov91-dev/1a80d354cb2928e2986ea18ee31841e8 to your computer and use it in GitHub Desktop.
course: udemy.com/course/symfony-framework-hands-on/
Plugins (search for them on the Extensions tab):
Auto Close Tags
PHP Intelephense
PHP Namespace Resolver
Rainbow Brackets
Twig
Themes
One Dark Pro
Eva Theme
Icons
Fluent Icons
VSCode Great Icons
symfony console debug:router;
maker-bundle
profiler
doctrine orm
https://github.com/piotr-jura-udemy/symfony6-hands-on.git
чтобы найти нужную БД надо запустить "docker ps" и указать ее вот в этой строке
docker exec -it symfony6-hands-on-mysql-1 mysql -u root -p
symfony console doctrine:database:create
symfony console make:entity
symfony console make:migration
symfony console doctrine:migration:status
symfony console doctrine:migrations:migrate --no-interaction
заполнение лівими данними
composer require --dev orm-fixtures
після створення классу фейкових данних треба запустити це
symfony console doctrine:fixtures:load
add form
composer require symfony/form
symfony console make:form - creates form fields handler
composer require symfony/validator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment