Core ConceptsUsage
Core Concepts

Basic Usage Patterns

Learn how to integrate and use core Louis Lukkanit components in your projects, with practical examples for common scenarios.

Overview

Louis Lukkanit provides modular Laravel packages for CMS, POS, and business systems. You integrate these components into your Laravel applications to build robust features quickly. Start by installing via Composer, then configure routes and models for your needs.

This guide covers configuration, CMS implementation, POS setup, and business modules with practical examples.

Ensure your Laravel app runs version 10+ for full compatibility.

Installation and Configuration

Follow these steps to add Louis Lukkanit packages to your project.

Install Packages

Use Composer to require the core packages.

composer require koamishin/ll-cms

Publish Assets

Publish migrations, configs, and views.

````bash
php artisan vendor:publish --provider="Koamishin\LLCMS\LLCMSServiceProvider"
php artisan vendor:publish --provider="Koamishin\LLPOS\LLPOSServiceProvider"
</Step>

<Step title="Run Migrations" icon="database">
Update your database schema.

```bash
php artisan migrate

Key Features Overview

Explore core capabilities with these feature cards.

Implementing CMS Features

Use the CMS package to manage content dynamically.

Extend the base model for your articles.

<?php

namespace App\Models;

use Koamishin\LLCMS\Models\Article as BaseArticle;

class Article extends BaseArticle
{
    protected $fillable = ['title', 'slug', 'content', 'status'];
}

Generate slugs automatically by adding HasSlugs trait to your model.

Setting up POS Functionalities

Configure POS for point-of-sale operations.

Register Products

Seed your database with products.

// database/seeders/ProductSeeder.php
Product::create([
    'name' => 'Sample Widget',
    'price' => 29.99,
    'stock' => 100,
]);

Process Sale

Use the POS controller for transactions.

Building Business System Modules

Create custom modules for CRM or invoicing.

Next Steps

Was this page helpful?
Built with Documentation.AI

Last updated today