DEV Community

CodeWithRonny
CodeWithRonny

Posted on

How to Create an Professional Blog Using Laravel PHP

Introduction
Laravel is an PHP’s free open source and famous web framework, developed by Taylor Otwell to develop web application for MVC (Model View Controller) architectural patterns. It supports backend and frontend development. Let’s see How to Create an Professional Blog Using Laravel PHP.

How to Create an Professional Blog Using Laravel PHP
In this article we will learn how to develop blog using laravel. Right now i am creating blogging system for one of my client Luisnvaya. There is more need of blog section on every website, make sure you are creating proferssional blogging system for your own website or for your client website. Here we will see how an professional blog creates.

Let’s build a new laravel app named blog. Use below command to create new project in current directory.

composer create-project laravel/laravel blog
Bash
Let’s run laravel app to check installation completed successfully.

php artisan serve
Bash
Check Laravel App In Browser
go to your browser and hit the localhost http://127.0.0.1:8000/

Read Full Original Article Here

Connect With Database
Create database, user, password and replace below information with yours.

Migrate Laravel App
If you using Highier version of laravel, you have to run migration to create needable database.

Read Full Original Article Here

What are Models in Laravel Framework and How to Use it
A Model is an PHP class in laravel framework that represent the database table. Basically It is responsible for maintaining the data in table and giving a method to user to interact with it. Data can be updated, added, retrieved or fetching and finally deleted by this models. So, let’s consider model is an manager of your data, they gurantee the validity, accuracy and safety of your data, and You can develop an User Model in Laravel if your database contains User Table. Generally the User model would be the manager to getting user records out of the database, adding new records, updating already existing records and deleting existing records.

Read Full Original Article Here

Top comments (0)