How To Create a Blog in Laravel
انتشار: مرداد 04، 1402
بروزرسانی: 31 خرداد 1404

How To Create a Blog in Laravel


Laravel\xa0is a PHP web application framework with an expressive, elegant syntax. It has a vast library of packages and handles much of the drudge work in programming, leaving you to focus on your creativity.

One creative use for Laravel is the construction of a personal blog. This tutorial describes how to use Laravel to build and publish a blog on Kinsta.

For a preview of the project, check out the complete project code.

Prerequisites

To follow this tutorial, ensure you have the following:

  • A web server. This tutorial uses XAMPP.
  • An account on GitHub, GitLab, or Bitbucket for publishing your application’s code.
  • Laravel installed.
  • An active MyKinsta account for application hosting. Sign up for a free trial\xa0if you don’t already have one.

Ensure that the Apache and MySQL module services are running in the XAMPP Control Panel. If not, click each service’s Start button in the\xa0Actions\xa0column. Your XAMPP Control Panel should look like this:

The XAMPP Control Panel display shows various module services.
XAMPP Control Panel

By default, MySQL/MariaDB runs on port 3306. Take note of the port if you change it.

If you use a web server other than XAMPP, ensure you are running Apache\xa0or other server software and have installed MariaDB server\xa0on your local machine.

Quickstart With phpMyAdmin

  1. With MySQL and Apache running, head to your browser.
  2. Open phpMyAdmin and paste in http://localhost/phpmyadmin/. It should display the following:
phpMyAdmin opened in the browser.
phpMyAdmin opened in the browser.

phpMyAdmin is a database management tool for MySQL and MariaDB.