Posts tagged laravel

Import Obsidian Zip File From Laravel 11 Dashboard

Published At:

Introduction

Obsidian is a note-taking application suitable for creating a knowledge base for web application developers. Obsidian, especially when using many plugins, creates a very effective environment for writing, collecting, and searching for notes. If we want to publish these notes on a web blog, we need to solve the bridging between Obsidian and Laravel. One of the forms is to create a suitable export from Obsidian and solve the import into the resulting form when creating posts in...

Read More

Makefile as an Operational Index in Laravel development

Published At:

Introduction

Laravel already gives for web project several command surfaces: Artisan, Composer scripts, npm scripts, and even a small admin-facing interface for a restricted set of Artisan commands. So the obvious question is why this repository still keeps a top-level Makefile.

During development, many other commands are still needed, either as commands from the terminal or in the form of bash (zsh) scripts. The sum of all such commands and their structure brings...

Read More

Migrating TinyMCE from v5.9 to v8.3 - Part 2

Published At:

The Migration Strategy: Self-Hosted TinyMCE with Static Copy

Instead of fighting Vite's module bundler, the solution uses a hybrid approach: TinyMCE is loaded as a traditional global script, while only the configuration runs through Vite.

Step 1: Remove TinyMCE from npm, Use Self-Hosted Distribution

Download TinyMCE 8 Community (GPL) from the official download page and place the full distribution...

Read More

Migrating TinyMCE from v5.9 to v8.3 - Part 1

Published At:

Migrating TinyMCE from v5.9 to v8.3 in a Laravel 8 → 11 Upgrade

Introduction

When migrating a Laravel blog application from Laravel 8 to Laravel 11, one of the most challenging frontend tasks is upgrading TinyMCE — the rich text editor used in the admin panel. This isn't a simple version bump. You're dealing with two simultaneous breaking changes:

  1. Build system: webpack.mix.js (Laravel Mix) → Vite 5 (Laravel's new...

Read More

Real-World CoreUI Migration - From Laravel 8 to Laravel 11

Published At: Updated At: 2026-03-07

Introduction

At the beginning, there was a simple requirement - to upgrade a small web blog from Laravel 8 to Laravel 11. In general, problems with upgrading Laravel versions are well known, but solutions for two areas:

  • using the Tinymce editor for the admin dashboard
  • CSS solution for the frontend application with Vite 5 and CoreUI 5 proved to be challenging. It is the second area, using the new versions of CoreUI and Vite, that we will discuss in the following...

Read More

Laravel Best Practices

Published At: Updated At: 2025-07-24

Note created on: 2023-05-05 07:45

Single responsibility principle

A class and a method should have only one responsibility.

Bad:

public function getFullNameAttribute(): string
{
    if (auth()->user() && auth()->user()->hasRole('client') && auth()->user()->isVerified()) {
        return 'Mr. ' . $this->first_name . ' ' . $this->middle_name . ' ' . $this->last_name;
    } else {
        return $this->first_name[0] . '. '...

Read More