Laravel Tutorial For Beginners

Laravel is a very powerful framework that follows the MVC structure. It is designed for web developers who need a simple, elegant yet powerful toolkit to build a fully-featured website. Laravel tutorial for beginners explains the basic use of Laravel 8 by building a simple blogging system.


More Tutorials on Web Development


Part One: Laravel Basics

Before we can start building our project, we need to talk about some basic concepts in Laravel. Let’s start by making some preparations, install the necessary software, create a new Laravel project, and then, we need to understand the MVC structure, which is commonly used by most of the web frameworks. And finally, we’ll talk about Laravel Nova, the official admin panel for Laravel applications.

Part Two: Build A Blog

One of the most important steps of web development is to design the database structure. In this tutorial, we’ll make four database tables together.

The users table stores the user name, email and password. The migration file for this table is already included in Laravel. The categories and tags tables store the category names and tag names. And finally, the posts table stores the post title, content, post image and so on.

However, just creating the tables is not enough. The tables have relationships with each other. This part could be a little tough for beginners, I will try to make it easy to understand, and only introduce the four most basic relationships.

Routes are the entry points when someone visits your blog. They receive URLs and returns controllers. Controllers retrieve data from the database through models and put them in views. Views are what we actually see in the browser, so they do look like HTML and CSS. However, things are more complicated than that.

In the next two articles, we’ll build search, pagination and some other optional features for our project. However, if you are not interested, feel free to jump to the end, and we can finally deploy our application.

Other Resources

Some Useful Tools For Web Development (PHP)

Laravel Official Documentation

3 thoughts on “Laravel Tutorial For Beginners”

  1. Hi

    After quite a few hours of playing with Laravel 8 using various sites, I became stuck as I could not get the admin panel to work.
    With the help of your site, I managed to do this in no time at all. So thanks very much!!
    I will now do the rest of the tutorial.

    btw:
    I had to create a database and do a migration
    Also, I had to set role_id to 1 to get the admin to work…
    not sure if that was in your tutorial but it may be a problem for those with zero laravel.

Leave a Reply

Your email address will not be published. Required fields are marked *