How to Create a Blog in Laravel | Laravel CRUD | Laravel Blog | Create a Blog in Laravel



In this video we will be creating a complete blog with authentication in Laravel – Learn how to create a blog with authentication application in Laravel.

📚 New Udemy Course
If you’re looking to level up your Laravel skills, my new course “Udemy Migirations, Seeders, Factories, Query Builder, Eloquent & Relationships” is the perfect opportunity. Learn the essential tools and techniques for building robust and scalable web applications with Laravel: https://www.udemy.com/course/mastering-laravel-10-query-builder-eloquent-relationships/?referralCode=C784C3DB5B8925207FCB

📲 Let’s plan a meeting
Plan a (paid) 1-hour meeting on Calendly to do portfolio reviews, code reviews resume reviews or a coaching session for Laravel. Please read the description before booking: https://calendly.com/codewithdary

💌 Newsletter
Sign up for my free weekly email newsletter: https://www.newsletter.codewithdary.com

🔥 Resources
– PHP Hosting (10% DISCOUNT): https://www.hostinger.com/codewithdary
– TikTok: https://www.tiktok.com/@codewithdary
– Instagram: https://www.instagram.com/codewithdary/
– Twitter: https://twitter.com/codewithdary
– Blog: https://blog.codewithdary.com/
– Newsletter: https://newsletter.codewithdary.com/
– Patreon: https://www.patreon.com/user?u=30307830
– GitHub: https://github.com/codewithdary/laravel-8-complete-blog

🔗 Useful links
– Pictures: https://pixabay.com/
– Laravel course: https://www.youtube.com/playlist?list=PLFHz2csJcgk_3VJwzVoeyMuC1rdBcfiLv

Want to learn more?
– Courses: https://www.youtube.com/channel/UCkzGZ6ECGCBh0WK9bVUprtw/playlists

📋 Table of Content
00:00 – Introduction
01:09 – Artisan, PHP and Node version
02:09 – Setting up our Tailwindcss
04:37 – Setting up our database credentials
05:23 – Creating our controllers & models
11:53 – Designing our home page
30:20 – Designing the Blog page
34:29 – Brainstorming about all endpoints
37:13 – Setting up our database
43:07 – Index method
49:51 – Creating & storing a post
01:13:47 – Showing a post
01:17:36 – Editing & updating a post
01:24:28 – Deleting a post

#laravel #blog #project

41 thoughts on “How to Create a Blog in Laravel | Laravel CRUD | Laravel Blog | Create a Blog in Laravel”

  1. getting error when i Type mysql; in terminal ! am unable to use database , idk why

    And do we need xamp to run this project?
    i mean u did nt use xamp anywhere , u just used server created by php artisan serve.

    Reply
  2. Hey Dary the coder ! i watched this tutorial many times and i managed to nail a laravel developer position and now i am mastering the art of Laravel everyday , so i want to say thanks to you for opening my door by sharing this video tutorial , you are a Laravel Guru , i like how you know the tailwind css for spacing and sizes by default , wow .

    Reply
  3. when i try to run "composer require laravel-frontend-presets/tailwindcss –dev" i get this error thing:

    Your requirements could not be resolved to an installable set of packages.

    Problem 1

    – laravel-frontend-presets/tailwindcss[4.3.0, …, 4.3.1] require laravel/framework ^8.0 -> found laravel/framework[v8.0.0, …, 8.x-dev] but it conflicts wi

    th your root composer.json require (^9.2).

    – Root composer.json requires laravel-frontend-presets/tailwindcss ^4.3 -> satisfiable by laravel-frontend-presets/tailwindcss[4.3.0, 4.3.1].

    Use the option –with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

    Installation failed, reverting ./composer.json and ./composer.lock to their original content.

    any idea whats causing this?

    Reply
  4. This was excellent tutorial and great introduction to make my own similar CRUD website for personal needs. Thank you very much, Dary! Do you plan to make exciting projects after completing laravel 9?

    Reply
  5. how do you add tailwindcss ui auth in laravel 9 ? sorry i am new to this. php artisan ui tailwindcss –auth isn't working. I added tailwindcss by using "npm install -D tailwindcss postcss autoprefixer"

    Reply
  6. It is weird for me, i tried like almost everything. When i try to install frontend presets tailwind i get an error saying that i need laravel ^8.0, but that it conflicts with laravel 9.19. Can't find the solution…

    Reply
  7. I have a problem while using the command 'composer require laravel-frontend-presets/tailwindcss –dev '.

    Problem 1

    – Root composer.json requires laravel-frontend-presets/tailwindcss ^2.1 -> satisfiable by laravel-frontend-presets/tailwindcss[2.1.0, 2.2.0, 2.2.1, 2.2.2].

    – laravel-frontend-presets/tailwindcss[2.1.0, …, 2.2.2] require laravel/framework ^5.5 || ^6.0 -> found laravel/framework[v5.5.0, …, 5.8.x-dev, v6.0.0, …, 6.x-dev] but it conflicts with your root composer.json require (^9.19).

    Reply
  8. Good one👍. I am little confuse from the commands used for this project setup. Is there any video where you have explain about such commands or any other source?
    Thanks

    Reply
  9. i have issue with auth tailwindcss it doesn't work and i can't find the answer
    Problem 1

    – laravel-frontend-presets/tailwindcss[4.3.0, …, 4.3.1] require laravel/framework ^8.0 -> found laravel/framework[v8.0.0, …, 8.x-dev] but it conflicts with your root composer.json require (^9.19).

    – Root composer.json requires laravel-frontend-presets/tailwindcss ^4.3 -> satisfiable by laravel-frontend-presets/tailwindcss[4.3.0, 4.3.1].

    Reply
  10. hello, i want to ask, i have error when i want to create an article, the message error is : SQLSTATE[HY000]: General error: 1364 Field 'user_id' doesn't have a default value
    are you have a solution for this error, what should i do? thank you

    Reply
  11. Thank you very much, sir. I have been frustrated searching for tutorials here and there, but then I found a helpful repository on GitHub. I used it and watched YouTube videos to gain a clearer understanding. It was really helpful. As a student, I sometimes struggle with assignments I am not familiar with.

    Reply

Leave a comment