Laravel Shift Blueprint: Generate CRUD from YAML File

Поделиться
HTML-код
  • Опубликовано: 19 сен 2022
  • I want to demonstrate to you a well-known package to generate the code of your controllers, models, and other files, from YAML-based text file.
    Blueprint: github.com/laravel-shift/blue...
    - - - - -
    Support the channel by checking out my products:
    - My Laravel courses membership: laraveldaily.teachable.com/p/...
    - Laravel QuickAdminPanel: bit.ly/quickadminpanel
    - Livewire Kit Components: livewirekit.com
    - - - - -
    Other places to follow:
    - My weekly Laravel newsletter: bit.ly/laravel-newsletter
    - My personal Twitter: / povilaskorop
  • ХоббиХобби

Комментарии • 29

  • @blank001
    @blank001 Год назад +5

    This a such a huge time saver for me, during design phase I usually make the DB desing in YAML first and then add/update according to requirements and once finalised I start making the migration and models manually, now I can generate models, migrations, controllers also 🤯🤯🤯
    count me in already

  • @al-aminhamadi9451
    @al-aminhamadi9451 Год назад

    Very nice content to me.

  • @SuvroImran
    @SuvroImran Год назад

    Thank you 💞

  • @vicsystems
    @vicsystems Год назад

    Thanks for this

  • @sebastiancarrasco6804
    @sebastiancarrasco6804 Год назад

    Thank you!!!!

  • @phoenixedge4049
    @phoenixedge4049 Год назад +1

    It could be useful for some, but I generally don’t like pulling in a package just to save a few minutes. I like having more control over my migrations/views/factories/tests without having to learn the nuances of a third party package. For this sort of thing, Quick Admin Panel is much more useful imo

  • @anbiaa-tawhid
    @anbiaa-tawhid 8 месяцев назад

    Sir,
    Is it possible to generate services with laravel blueprint ?

  • @DeTechDivus
    @DeTechDivus Год назад

    Does it have option to choose if it's a web or api based creation? Additionally adding it to api routes and creating and returning resources.

    • @LaravelDaily
      @LaravelDaily  Год назад +1

      Please look into the documentation. But I haven't seen this option specifically.

  • @porfiriodev
    @porfiriodev Год назад

    Is it wrong to do the relationships only on models and eloquent and not in the database with the migrations?

    • @LaravelDaily
      @LaravelDaily  Год назад

      Yes it is wrong, because some database operations may then fail.
      Watch my video about it: ruclips.net/video/-77LnBSL2Zk/видео.html

  • @sajidsadeeq4397
    @sajidsadeeq4397 Год назад +1

    Thanks for sharing such a useful content, need some hep in another issue
    SomeModel::with('SomeRelation')->select( 'first_column' , 'second_column')->get();
    when i try to run above query, SomeRelation return as null
    SomeModel::with('SomeRelation')->get();
    If i remove select from the query then it works fine, Can you please explain this why?

    • @mustafagondalwala5553
      @mustafagondalwala5553 Год назад +1

      In select also pass the foreign key column name.

    • @sajidsadeeq4397
      @sajidsadeeq4397 Год назад +1

      @@mustafagondalwala5553 thanks, it worked, can you please why we need to do that? i want to understand the picture behind it

    • @johnandriepareja5160
      @johnandriepareja5160 Год назад

      @@sajidsadeeq4397 you need to add the model's primary key in the select() to make eagerloadings work, and vice versa.
      Also, you can use the get() to specify columns like you do in select. Ex.
      ->get(['id','specific_column']);

  • @fahvygaming1118
    @fahvygaming1118 Год назад

    I want to create an e-commerce website with Laravel APIs and a third-party react frontend. Do you think this will work

    • @thanjeys
      @thanjeys Год назад

      Yes it will work. Whats problem do you think ?

  • @blokkaliwon7794
    @blokkaliwon7794 Год назад

    sir, how can i return value with multiple pages ? example code
    return view('user.index', compact('users');
    return view('employee', compact('employees);

    • @steve-rolandndetsapi5139
      @steve-rolandndetsapi5139 Год назад +1

      You can't return multiple pages at once, and I think there is no reason to do so, maybe you talk about returning multiple data in one page? If not then I don't really understand the problem

    • @blokkaliwon7794
      @blokkaliwon7794 Год назад

      @@steve-rolandndetsapi5139 Yes sir, I think everyone thinks like that, but the case I got started with how to get the search result data to display in the view and export it to PDF according to the query results.

  • @user-hk3te3ql5p
    @user-hk3te3ql5p Год назад

    LIFE_SAVER

  • @ernestmugo1765
    @ernestmugo1765 Год назад

    Update your browser

  • @EmilBeli
    @EmilBeli Год назад +9

    Why we need human-readible thing? We are devs, look like humans but are actually not. 🤣 Fun aside, I guess it is useful. Thanks for the video.

    • @toomass2668
      @toomass2668 Год назад

      I actually agree. Code needs to make sense and be readable to "developers" not regular humans. Person with just "internet browsing" experience should not be able to read code fluently. Obviously it is benefit but I am not going to stress over it if 90% devs understand my code perfectly and some very beginner Junior doesnt. its just about experience which comes with time and practice. Again, code needs to be readable and understandable!!!!

    • @hydrokat143
      @hydrokat143 Год назад

      being human is stressful

  • @Z4KIUS
    @Z4KIUS Год назад

    what's the deal with YAML? it's a terrible language with tons of caveats and scarily high chance of making mistakes and yet it's the goto choice for CI/CD tools and things like that... just why?
    and no, it's absolutely not readable, due to lack of braces and proper array syntax it's a complete mess

    • @Poooya
      @Poooya Год назад

      Use a .yml editor or config your IDE for .yml, if your only reason is non-readability and chance of mistaking

  • @rogerflatt8054
    @rogerflatt8054 Год назад

    Client conversation -> Dry Wipe Board - > Wireframe -> DB Schema/DDL -> YAML - > Blueprint -> Laravel -> App -> Deploy -> Invoice -> GetPaid .... gets ever nearer? 🧐😂
    php artisan blueprint:build clientsApp.yaml -test -deploy -invoice -checkBankAccount 😁
    (Only half joking ...)