Skip to content

Commit

Permalink
78 fix database malformed error (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
benbjurstrom authored Sep 27, 2024
1 parent 01f1869 commit 559b11b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Prezet: Markdown Blogging for Laravel

Transform your markdown files into SEO-friendly blogs, articles, and documentation with Prezet. Including built in automatic image optimization, dynamic tables of contents, validated front matter DTOs, and integrated Blade components.
Go from markdown files to SEO-friendly blogs, articles, and documentation in seconds!

[![Latest Version on Packagist](https://img.shields.io/packagist/v/benbjurstrom/prezet.svg?style=flat-square)](https://packagist.org/packages/benbjurstrom/prezet)
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/benbjurstrom/prezet/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/benbjurstrom/prezet/actions?query=workflow%3Arun-tests+branch%3Amain)
Expand Down Expand Up @@ -48,7 +48,7 @@ composer require benbjurstrom/prezet

#### Run the package installer:

_⚠️ NOTE: Before running the installer on an existing application it is recommended to switch to a clean branch. As part of the install process Prezet configures your application with Tailwind CSS. Any existing Tailwind configuration will be overwritten._
_⚠️ NOTE: Before running the installer on an existing application it is recommended to switch to a clean branch so you can see the changes Prezet made during the installation process._

```bash
php artisan prezet:install
Expand Down
8 changes: 8 additions & 0 deletions src/Actions/UpdateIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@
use BenBjurstrom\Prezet\Models\Heading;
use BenBjurstrom\Prezet\Models\Tag;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Schema;

class UpdateIndex
{
public static function handle(): void
{
$lock = Cache::lock('prezet-update-index', 10);
if (! $lock->get()) {
return;
}

self::runMigrations();
$docs = GetAllFrontmatter::handle();
$docs->each(function (FrontmatterData $doc) {
Expand Down Expand Up @@ -56,6 +62,8 @@ public static function handle(): void
->where('slug', '.*');

UpdateSitemap::handle();

$lock->release();
}

/**
Expand Down

0 comments on commit 559b11b

Please sign in to comment.