Laravel Shift Blueprint: Generate CRUD from YAML File

Поделиться
HTML-код
  • Опубликовано: 18 янв 2025

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

  • @blank001
    @blank001 2 года назад +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

  • @anbiaa-tawhid
    @anbiaa-tawhid Год назад

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

  • @phoenixedge4049
    @phoenixedge4049 2 года назад +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

  • @DeTechDivus
    @DeTechDivus 2 года назад

    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  2 года назад +1

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

  • @porfiriodev
    @porfiriodev 2 года назад

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

    • @LaravelDaily
      @LaravelDaily  2 года назад

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

  • @blokkaliwon7794
    @blokkaliwon7794 2 года назад

    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 2 года назад +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 2 года назад

      @@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.

  • @sajidsadeeq4397
    @sajidsadeeq4397 2 года назад +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 2 года назад +1

      In select also pass the foreign key column name.

    • @sajidsadeeq4397
      @sajidsadeeq4397 2 года назад +1

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

    • @johnandriepareja5160
      @johnandriepareja5160 2 года назад

      @@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 2 года назад

    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 2 года назад

      Yes it will work. Whats problem do you think ?

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

    Thanks for this

  • @al-aminhamadi9451
    @al-aminhamadi9451 2 года назад

    Very nice content to me.

  • @SuvroImran
    @SuvroImran 2 года назад

    Thank you 💞

  • @sebastiancarrasco6804
    @sebastiancarrasco6804 2 года назад

    Thank you!!!!

  • @محمدابراهيم-ظ2ض
    @محمدابراهيم-ظ2ض 2 года назад

    LIFE_SAVER

  • @EmilBeli
    @EmilBeli 2 года назад +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 2 года назад

      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 2 года назад

      being human is stressful

  • @ernestmugo1765
    @ernestmugo1765 2 года назад

    Update your browser

  • @Z4KIUS
    @Z4KIUS 2 года назад

    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 2 года назад

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

  • @rogerflatt8054
    @rogerflatt8054 2 года назад

    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 ...)