laravel-photo-gallery Tailwind Templates

Laravel Photo Gallery

This is a Laravel-based photo gallery application that utilizes the Spatie Media Library package for efficient media management and Tailwind CSS for responsive styling. Built with Laravel 11, the application allows users to create, update, view, and delete albums while uploading images with support for media conversions.

Laravel Logo

Build Status Total Downloads Latest Stable Version License

Laravel Photo Gallery

This is a simple photo gallery application built with Laravel 11, Spatie Media Library, and Tailwind CSS.

Installation

Follow these steps to get your Laravel Photo Gallery up and running:

Prerequisites

Make sure you have the following installed:

  • PHP (>= 8.1)
  • Composer
  • Laravel Installer (optional)

Step 1: Clone the Repository

Clone the project to your local machine:

git clone https://github.com/yourusername/laravel-photo-gallery.git

cd laravel-photo-gallery

Step 2: Create the Environment File

cp .env.example .env
php artisan key:generate

Step 3: Set Up Database

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_database_username
DB_PASSWORD=your_database_password

Step 4: Run Migrations

php artisan migrate

Step 5: Install Spatie Media Library

composer require spatie/laravel-medialibrary
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider"


Step 6: Serve the Application

php artisan serve

Your application should now be running at http://localhost:8000.

Top categories

Loading Svelte Themes