/laravel-blog

Simple blog based on Laravel 10 with Filament PHP admin panel

Primary LanguagePHPMIT LicenseMIT

Laravel blog with Filament admin panel

This is Laravel blog starter kit project with Filament admin panel.

The goal of this repository is to showcase good Laravel development practices with a simple application.

Features

  • 📚 Creating and editing posts
  • 🥑 Categories
  • 🔥 Popular posts
  • 🐥 Admin panel built on Filament

Screenshots

This is what the blog looks like:

Laravel blog

And this is what the admin panel on Filament looks like:

Filament admin panel

Requesting features

Open a new issue to request a feature (or if you find a bug).

How to run blog locally?

Clone the project:

git clone git@github.com:gomzyakov/laravel-blog.git

I believe you already have Docker installed. If not, just do it on Mac, Windows or Linux.

Build the laravel-blog image with the following command:

docker compose build --no-cache

This command might take a few minutes to complete.

When the build is finished, you can run the environment in background mode with:

docker compose up -d

We’ll now run composer install to install the application dependencies:

docker compose exec app composer install

Copy the environment settings:

docker compose exec app cp .env.local .env

Set encryption key with the artisan Laravel command-line tool:

docker compose exec app ./artisan key:generate --ansi

Migrate DB & seed fake data:

docker compose exec app ./artisan migrate:fresh --seed

And add Filament admin user:

docker compose exec app ./artisan make:filament-user

And open http://127.0.0.1:8000 in your favorite browser. Happy using Laravel Blog!

How to get inside the container?

Access to the Docker container:

docker exec -ti laravel-blog-app bash

License

This is open-sourced software licensed under the MIT License.

GitHub release license codecov