Laravel vs Symfony CRUD: Live-Coding Demo

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ต.ค. 2024
  • For Laravel devs, a demo of creating (generating?) a simple Symfony CRUD, for comparison.
    - - - -
    Support the channel by checking out my products:
    My Laravel courses: laraveldaily.c...
    Filament examples: filamentexampl...
    Livewire Kit Components: livewirekit.com
    - - - -
    Other places to follow:
    My weekly Laravel newsletter: us11.campaign-...
    My personal Twitter: / povilaskorop

ความคิดเห็น • 52

  • @nikolaystoychev7170
    @nikolaystoychev7170 4 วันที่ผ่านมา +7

    Great video!
    I welcome the idea of videos like this!
    The comparisons between Laravel and Symfony really highlight the strengths of both frameworks. It's valuable to see different approaches, which gives us more ideas on how to improve our development process and create a better experience for developers. Having this kind of insight helps us make more informed decisions when building applications.
    TNX

  • @oghenetegananu9811
    @oghenetegananu9811 19 ชั่วโมงที่ผ่านมา

    I love the fact that in symfony we have a command for creating crud.
    I think this is something that I can contribute to laravel with help from senior devs like you

  • @JohnDoe-jc4xp
    @JohnDoe-jc4xp 6 วันที่ผ่านมา +7

    At first glance I like how routes are handled in Symfony.

  • @cardboarddignity
    @cardboarddignity 6 วันที่ผ่านมา +10

    I would like to see Symfony vids just to compare. I have worked with it just once and then that project switched to Yii2 (that also is Symfony-like). I kinda live the route schema there, the concept, but it lacks grouping and other stuff. For me, Laravel is much more developer friendly than any other

  • @florianlutze9068
    @florianlutze9068 5 วันที่ผ่านมา +3

    I like how all properties of models are real properties in Symfony. I kind of miss that a lot in Laravel.

  • @JeffLewis1975
    @JeffLewis1975 4 วันที่ผ่านมา +2

    Thanks for the video! I am currently debating a project and can't decide between Laravel and Symfony. I find Symfony more complex and a friend of mine swears by Symfony or Mezzio and claims Laravel is terrible. I'd love to see more Symfony videos.

  • @AbdulRehman-mw5sc
    @AbdulRehman-mw5sc 3 วันที่ผ่านมา +1

    It looks great, it would be great if you could share more videos comparing laravel stuff with Symfony, so we can have ground knowledge to easily shift for different projects from laravel to Symfony and from Symfony to laravel respectively.
    Thank you for your efforts.

  • @vladislavkresta1321
    @vladislavkresta1321 6 วันที่ผ่านมา +3

    One thing I like better in Symfony than Laravel is how migrations are made. In Symfony, you have PHP properties with PHP attributes that say which column type, primary key, index, ... and migrations are created automatically by these attributes.
    In Laravel, I have to edit my $fillable array, create migration, type in the change, ...
    Like Povilas once said - you once create a migration file and never touch it again, but these database change mid work could be better handled in Laravel

  • @isabelphillips451
    @isabelphillips451 6 วันที่ผ่านมา +4

    Laravel any day, anytime 😍😍 ... I know there are some of Symfony's code in laravel but that is pretty much how close I can be to Symfony

  • @normanhuth478
    @normanhuth478 4 วันที่ผ่านมา +1

    I worked with both frameworks at my employers. (Symfony was used for all old projects and there are also Pimcore or Shopware projects).
    New projects are set up with Laravel if a PHP framework is required.
    The “Magic” is frowned upon by many. But with the right setup (PHPStorm, ide-helper, Larastan/PHPStan and Laravel Idea Plugin), working with it is no problem.
    I like to read forums where many Laravel and Symfony developers talk to each other. Especially the counterarguments of Symfony developers against Laravel are often wrong or refer to very old versions.
    The higher scalability of Symfony compared to Laravel is also often mentioned, which I personally cannot comprehend.
    And “Laravel facades” are not facades in the sense of the facade design pattern. This is also often under criticism.
    I wouldn't say that Symfony or Laravel is better.
    But I find the development speed, community and the 1st party offer with Laravel very very very much better.
    When it comes to the use of components, Symfony is clearly ahead, as these are also well documented for use outside the framework.
    Which now prevents me from using Illuminate components. Especially for small console applications, I like to use illuminate/console for example.

  • @univiewee8655
    @univiewee8655 7 วันที่ผ่านมา +5

    Yep, that would be good to see simple authentication, in order to compare to what we get with Laravel with couple of commands.

    • @bumblebity2902
      @bumblebity2902 6 วันที่ผ่านมา +1

      Symfony has built-in auth as well

  • @ayomidealase
    @ayomidealase 6 วันที่ผ่านมา +19

    Nice, but i prefer laravel any day anytime

  • @JeremyMoore1
    @JeremyMoore1 6 วันที่ผ่านมา +3

    I'm coming from Symfony to Laravel and these are some of the features I miss. So much quicker to get things running IMO

    • @HT-hj5jp
      @HT-hj5jp 4 วันที่ผ่านมา

      Symfony might look good when you start using it, but when you actually dig it, you see how deep this rabbit hole is... And the result is the same as Laravel's just with more frustration.

    • @JeremyMoore1
      @JeremyMoore1 4 วันที่ผ่านมา

      @@HT-hj5jp I've been using Symfony for 10 years. Zend before that. Looked at Laravel at one point and it was really lacking at that time. It has come a long way since the last time I checked it out.

  • @dannydelgado9820
    @dannydelgado9820 6 วันที่ผ่านมา +1

    Great video as always. Many thanks!

  • @ahmadirfan7840
    @ahmadirfan7840 4 วันที่ผ่านมา +1

    The command console to make crud operation in Symfony is pretty similar to create scaffold in Ruby on Rails. That is what I see. But yeah, even though Symfony's code kinda bloated, quite long, and resources mixed together with controller, I guess it is worth to try..

  • @Mohamed.G15
    @Mohamed.G15 6 วันที่ผ่านมา

    Nice video to have a look on symfomy framework
    Thanks a lot

  • @matthiasbackhaus370
    @matthiasbackhaus370 6 วันที่ผ่านมา +1

    We use Laravel with Doctrine package instead of Eloquent in a very big project (100+ entities). There are pros and cons for me. I like separating entity and repository for bigger projects. We also build a smaller Filament app (bcs. of your channel btw), and here I like Eloquent more, it feels more fluent and easier considering no need for EntityManager.

    • @LaravelDaily
      @LaravelDaily  6 วันที่ผ่านมา

      So, yeah, basically, IT DEPENDS :)

  • @zoltalar
    @zoltalar 4 วันที่ผ่านมา

    Would be nice to see more Symfony videos

  • @richardwheatley7194
    @richardwheatley7194 วันที่ผ่านมา

    Sylius in built on Symphony and it looks like a mature ecommerce solution.

  • @collinslagat3458
    @collinslagat3458 7 วันที่ผ่านมา +9

    Symphony's MVC looks like Spring Boot.

    • @spicynoodle7419
      @spicynoodle7419 6 วันที่ผ่านมา +1

      Symfony is heavy on the design patterns which makes it look like Java code

  • @shinichi9do
    @shinichi9do 6 วันที่ผ่านมา

    thank you

  • @youaskforit
    @youaskforit 6 วันที่ผ่านมา

    This is actually my first framework. But I like laravel more.

  • @doesitmatter
    @doesitmatter 6 วันที่ผ่านมา

    I dont have time to explore symfony but im curious so I would appreciate symfony vids too see whats going on there

  • @rafamorawiec
    @rafamorawiec 6 วันที่ผ่านมา +1

    Symfony Daily (tm) :D

  • @masthisis3914
    @masthisis3914 6 วันที่ผ่านมา +2

    after some reading in symfony Docs . in plane language the different between laravel and symfony is that laravel is like a little Cessna to an F22-Raptor. I'm going to learn symfony and use it for my future projects.

  • @gizmoitus
    @gizmoitus 6 วันที่ผ่านมา +2

    Nice review. I do want to address your issue with some of the "complexity" of the ORM. I don't think it is more complex, but it is different. Eloquent is an Active Record implementation, which is often criticized for not supporting single responsibility or separation of concerns. Doctrine is a Data Mapper ORM implementation. For that reason, Doctrine separates the management of ORM objects (the connections, transactions, etc) from the core mapping (the models) and from querying (the repository). Active Record is simpler, but that does not mean that it is better. Yes, people who are starting out find it easier to understand $user->save(). That doesn't mean that code is better. Having an entity manager is far more elegant, and downright wonderful to work with when you have multiple connections you are using, whereas (not picking on eloquent here) any active record ORM is quickly reduced to controller spaghetti at the point you start working with a lot of different objects and RDBMS transactions. In a simple example like this where you generate code, these things are created for you, even when you currently don't need them. Repositories have a variety of base methods available, but at that point that you want to add something customized, the structure is already there. Funny enough, I worked for a company that had a large direct to consumer service infrastructure written in Laravel, and the developers spent a lot of time essentially trying to add a repository layer on top of Eloquent.

    • @LaravelDaily
      @LaravelDaily  6 วันที่ผ่านมา

      Thanks for taking the time to explain, all makes sense!

  • @leonvanrijswijk8409
    @leonvanrijswijk8409 6 วันที่ผ่านมา +2

    Do good Laravel packages exist to fill the 'create crud'-gap in Laravel?

    • @vladislavkresta1321
      @vladislavkresta1321 6 วันที่ผ่านมา +1

      I found easier to create custom command which takes my existing model and create whole CRUD, only thing I have to do "by hand" is edit form, but because I use Rappasoft Livewire Table, index page generates it self. It's a little bit of work to complete it after generation, but atleast I don't have to create views by hand

    • @LaravelDaily
      @LaravelDaily  6 วันที่ผ่านมา +2

      Blueprint

  • @youngmichi8655
    @youngmichi8655 6 วันที่ผ่านมา +2

    Thats nice to see. I mainly use symfony. I did look at laravel a few years day but i did not like eloquent the orm. I don't want my domain objects extend any class from the framework.

    • @MrPatishpanj
      @MrPatishpanj 6 วันที่ผ่านมา +1

      Because…?

  • @MahfuzulHasan100
    @MahfuzulHasan100 5 วันที่ผ่านมา

    Please make a long video

  • @nadjinmalade8738
    @nadjinmalade8738 6 วันที่ผ่านมา +1

    Not bat, Sorry, I prefer Laravel every day.
    I prefer CodeIgniter wich is simpler.

  • @LoganathanNatarajanlogudotcom
    @LoganathanNatarajanlogudotcom 6 วันที่ผ่านมา

    I like Symfony but still Laravel is my top ...

  • @marius-mihailionte339
    @marius-mihailionte339 6 วันที่ผ่านมา

    Do you use Herd for every Laravel project?

  • @eslammostafa1247
    @eslammostafa1247 6 วันที่ผ่านมา

    Dono for me I don't feel Symfony

  • @4pawsFun
    @4pawsFun 4 วันที่ผ่านมา

    Symfony is much better from code quality and typing

  • @kamleshpaul414
    @kamleshpaul414 6 วันที่ผ่านมา +4

    symphony code looks bloated and ugly

  • @aashishkafle2019
    @aashishkafle2019 7 วันที่ผ่านมา +2

    First viewer❤

  • @PaulAlbandoz
    @PaulAlbandoz 6 วันที่ผ่านมา +3

    No, please don't go too deep into Symfony! Laravel is much more readable, clean and organized than Symfony. I have to maintain a few Symfony projects, and every time I need to change something it's a pain... The Symfony core (that Laravel uses) seems fine, but I don't like the structure of Symfony projects at all.

    • @JeremyMoore1
      @JeremyMoore1 6 วันที่ผ่านมา +2

      I find trying to locate the view files in Laravel a pain LOL blade files are located one place and liveware files another, etc, etc

    • @AtiqSamtia
      @AtiqSamtia 6 วันที่ผ่านมา

      ​@@JeremyMoore1 Laravel idea in Phpstorm gives nice clickable links to the view right from where it is used. No need to find

    • @hentype
      @hentype 3 วันที่ผ่านมา

      @@JeremyMoore1 you can configure that easily.

  • @saravanasai2391
    @saravanasai2391 7 วันที่ผ่านมา +1

    Second comment. How about zend in 2024?.

    • @youngmichi8655
      @youngmichi8655 6 วันที่ผ่านมา +2

      From what i know zend is laminas know and zend is deprecated