From Blank to Blog With Laravel in 10 Minutes

preview_player
Показать описание
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?

Рекомендации по теме
Комментарии
Автор

i'll never get bored of watching laravel content no matter how much i learn i just love to see how others think
i used this video to build another blog i just felt suddenly motivated and will be pushing it to github in the morning
ty so much Laracasts

wtfdoiputhere
Автор

Just a note for the guys who are struggling like I was: @9:52 Luke says about calling the "authorize" method in the current instance of the CommentController, however there's no such method, at least not in Laravel 11, so after some digging, instead of calling the method via controller, you can call it statically from the Gate class (used for this kind of authorizations), like "Gate::authorize('detele', $comment)" then it would work! I hope it helps someone.

moromizatos
Автор

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.

netsudro
Автор

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.

billionsjoel
Автор

Next video idea: Creating Admin area for blog management

matinlh
Автор

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?

PaulAlbandoz
Автор

Great!!!
Thanks bro.
Blessings from Venezuela

drfcozapata
Автор

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.

FlyingCable
Автор

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

ahmadabeer
Автор

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 ?

xcrap
Автор

A working blog. Sure if you only ever wanna read seeded data? I get that the idea of the video is doing it all in 10 minutes, but you skipped over the blogging part of the blog.

HiImKyle
Автор

Cant see the end of this line: 'body' =>

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.

marcburns
Автор

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.

bigorstojanov