Dev Genius

Coding, Tutorials, News, UX, UI and much more related to development

Follow publication

Member-only story

Laravel create an admin panel from scratch — Part 1 — Installation

Balaji Dharma
Dev Genius
Published in
4 min readJan 15, 2022

--

Photo by Danist Soh on Unsplash

Laravel is a web application framework, an open-source PHP web framework. Laravel is following the model–view–controller (MVC) architectural design pattern.

Modern days Laravel framework is used to build API services for decoupled architecture.

In this blog series, we going to build our Laravel Admin panel with basic features.

Installation

All the installation details are available in the official Lavarvel document. We can install Laravel on your existing web server (WAMP or XAMPP) or Docker.

  • 1. Installation via Composer
  • 2. Install Laravel on Docker

1. Installation via Composer

Install your Laravel using Composer, if you already have WAMP or XAMPP installation and Composer on your computer.

composer create-project laravel/laravel my-app

cd my-app

After the application has been created, you may start Laravel’s local development server using the Artisan CLI’s serve command:

php artisan serve

MySQL Database

Now our application is ready. Create a new database in your PhpMyAdmin and add the DB details in the root directory .env file.

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=my_app
DB_USERNAME=root
DB_PASSWORD=password

2. Install Laravel on Docker

Install Docker Desktop, If you using Mac or Windows computer. For Windows, you should ensure that Windows Subsystem for Linux 2 (WSL2) is installed and enabled. WSL allows you to run Linux binary executables natively on Windows 10. Information on how to install and enable WSL2 can be found within Microsoft’s developer environment documentation.

--

--

Write a response