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
composer require koamishin/ll-pos
composer require koamishin/ll-business
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.
CMS Management
Handle articles, pages, and media uploads seamlessly.
POS Transactions
Process sales, inventory, and receipts in real-time.
Business Modules
Integrate CRM, invoicing, and reporting tools.
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'];
}
Render articles in your views.
<x-ll-cms::article :article="$article">
<div class="content">
{!! $article->content !!}
</div>
</x-ll-cms::article>
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
Last updated today