Open roberto-butti opened 2 years ago
@roberto-butti we can try to collect some Symfony examples in this issue. What do you think about starting with a simple Laravel example and after we try to start from there converting it to a similar Symfony action?
@roberto-butti can you post here a little example of Laravel action so we can understand in Symfony how can we rewrite that action?
@roberto-butti can you post here a little example of Laravel action so we can understand in Symfony how can we rewrite that action?
Sure , take a look here : https://ghygen.hi-folks.dev/?template=laravelapp&code=6c74432cc8da98631b40ddfb4a5f21d3
As you can see, after running composer there are some specific steps for Laravel (copy and paste):
- name: Generate key
run: php artisan key:generate
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Run Migrations
# Set environment
env:
DB_CONNECTION: mysql
DB_DATABASE: db_test_laravel
DB_PORT: 33306
DB_USER: root
run: php artisan migrate
Well in Symfony usually there is a basic step after composer install
.
symfony server:start
If the goal is to launch migrations in symfony there are specific libraries like doctrine/migrations
and others.
As discussed briefly with my friend @AlessandroMinoccheri at PHPDay2022 event, it would be nice to add "Symfony staff". Something like "Laravel Stuff". This is just a placeholder as a reminder. For now, I'm going to start investigate which steps are needed and are specific for a Symfony application.