From Blank to Blog With Laravel in 10 Minutes

Поделиться
HTML-код
  • Опубликовано: 8 окт 2023
  • Ever wondered what Laravel is all about? If you have 10 minutes, let's put together a simple blog with commenting functionality to get a feel for how Laravel works, and the toolkit provided right out of the box. I think you'll love it!
    This episode is from Luke Downing's Larabits
    Larabits are short lessons that focus on a single technique.
    No hassle, no investment. Got five minutes?
    Watch thousands of videos, track your progress, and participate in a massive Laravel community at Laracasts.com.
    Laracasts: laracasts.com
    Laravel Prompts: laravel.com/docs/prompts
    Laracasts Twitter: / laracasts
    Jeffrey Way Twitter: / jeffrey_way

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

  • @netsudro
    @netsudro 8 месяцев назад +10

    Great demonstration! Not really "easy" or in "10 minutes", but with a few years of Laravel experience anyone can get there.
    Laravel is a great framework that really gave PHP a fresh perspective.
    I use it exclusively for my projects.
    The only thing is that I learned it back in the days of Laravel 6, and I still write the code in that style.
    I don't write clean code, I write verbose code that is easy to read for a beginner.

  • @billionsjoel
    @billionsjoel 8 месяцев назад +6

    As an experienced individual who understands the subject matter, I find this video to be impressive and believe I can still learn a thing or two from it. However, I also wonder whether a complete newbie would grasp what's happening.

  • @matinlh644
    @matinlh644 8 месяцев назад +5

    Next video idea: Creating Admin area for blog management

  • @giorgiofranchini77
    @giorgiofranchini77 7 дней назад

    Nice work, thanks 😊

  • @siberiatrekking
    @siberiatrekking 5 месяцев назад +1

    Many thanks for detailed explanation!

  • @drfcozapata
    @drfcozapata 6 месяцев назад

    Great!!!
    Thanks bro.
    Blessings from Venezuela

  • @PaulAlbandoz
    @PaulAlbandoz 7 дней назад

    What about the page to add/edit posts? And more specifically: how would you implement a WYSIWYG field for the post's body? Storing it as markdown looks great idea, but is there a simple editor for non-technical users?

  • @Honken
    @Honken 8 месяцев назад

    Bravo!

  • @allrounder7283
    @allrounder7283 8 месяцев назад

    thanks

  • @ahmadabeer3523
    @ahmadabeer3523 8 месяцев назад +1

    Great Video But would be nice if the comment section was in the same page as the post.

  • @xcrap
    @xcrap 8 месяцев назад

    That's a great video. But I have a question about all tutorials I've seen in Laravel contents databases. In terms of optimization, I'm sure from past experiences that it's much better to have all Long Text fields in a separate table, so posts should be a table and for example table_contents should have that longText description, even make two queries instead of one will have much faster optimized results with thousands of records, or am I wrong ?

    • @hentype
      @hentype 8 месяцев назад

      It won't make much difference unless you're working with something around hundreds of thousands of rows. I do something similar with a table of millions of rows, separating what used to be a column as a related table with foreign key and content columns. The advantage is that the db queries when searching/filtering through the rows don't get too big in size and I only have to use ->with() on individual row queries. One disadvantage I can think of is that if you ever need to filter the table using those contents as a condition it will complicate the code for the query logic.

  • @FlyingCable98
    @FlyingCable98 8 месяцев назад

    Very nice. Quick question though.
    At 10:35 is there a benefit to sending the delete form to posts.comments.destroy instead of just comment.destroy? Wondering what is more conventional and why.

    • @kristun216
      @kristun216 8 месяцев назад +2

      it's because when he setup the route at 3:51 he set it up under "posts.comments", if you had different resource setup then you would use the magic string according to how you set up the routes

  • @Mickeyfsc2601
    @Mickeyfsc2601 8 месяцев назад

    Remarkable

  • @akooka146
    @akooka146 8 месяцев назад +1

    Which Breeze stack did he use?

    • @drugoviic
      @drugoviic 8 месяцев назад

      just regular blade

  • @Fosterushka
    @Fosterushka 8 месяцев назад +1

    what browser does he use ?

  • @adityaco7021
    @adityaco7021 2 месяца назад +1

    not easy at all

  • @marcburns508
    @marcburns508 3 месяца назад

    Cant see the end of this line: 'body' => file_get_contents(database_path('factories/fixtures/example
    I get an error when I run: php artisan migrate -seed
    You cant use the same email... it has to be unique.
    Yea you did it in 10 minutes, but you glossed over way too much. Maybe this helps someone experienced in the platform, but definitely not someone new to it.

  • @bigorstojanov184
    @bigorstojanov184 8 месяцев назад +4

    I hate these click-bait "tutorials" that offer this teleshopping marketing level promises about how you can learn SQL in 5 mins or Vue in 10 mins, or this how to make a blog in 5 mins. Of course, they give you a false picture that web development should be fast, thoughtless and without deep understanding of concepts. This is the general problem that I have always with Laracasts.

    • @godwinudofia179
      @godwinudofia179 8 месяцев назад +4

      He literally said he wants to address those who may be on the fence about using Laravel for this purpose. There are proficient users of Laravel who may be on the fence and I believe this video caters to their question.
      It is understandable that you may have your own issue with Laracast's method and that's alright. But also acknowledge the target audience of this video.

    • @bigorstojanov184
      @bigorstojanov184 8 месяцев назад

      @@godwinudofia179 It ok that you have different opinion, but you missed the point by a mile. The tittle is click bait just as many similar tutorials that sell web development as a rapid 5 min task. This is wrong on so many levels. This is why people get lost in tutorial hell and why tutorialism has become such a lucrative business.

    • @drugoviic
      @drugoviic 8 месяцев назад

      Laracasts is great, by just studying the PHP course you will go from beginner to having the ability to build production ready and safe application, the short courses are mostly meant for people who actually have experience, always check the difficulty its indicated

  • @emadmohamed5787
    @emadmohamed5787 8 месяцев назад

    thanks