elmergustavo / blog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel 10 Blog Starter Kit

This is Laravel 10 blog starter kit project with Filament PHP admin panel. The project is created during YouTube Tutorial.

Installation with docker

1. Clone the project

git clone https://github.com/thecodeholic/laravel-10-blog.git

2. Run composer install

Navigate into project folder using terminal and run

docker run --rm \
    -u "$(id -u):$(id -g)" \
    -v "$(pwd):/var/www/html" \
    -w /var/www/html \
    laravelsail/php82-composer:latest \
    composer install --ignore-platform-reqs

3. Copy .env.example into .env

cp .env.example .env

4. Start the project in detached mode

./vendor/bin/sail up -d

From now on whenever you want to run artisan command you should do this from the container.
Access to the docker container

./vendor/bin/sail bash

5. Set encryption key

php artisan key:generate --ansi

6. Run migrations

php artisan migrate

7. Add Filament Admin user

php artisan make:filament-user

Demo

Coming soon...

About


Languages

Language:PHP 73.1%Language:Blade 25.0%Language:Dockerfile 1.1%Language:JavaScript 0.5%Language:Shell 0.1%Language:CSS 0.1%