turbotech/turbotech-component

turbotech/turbotech-components is a Laravel components framework builder developed based on Laravel/framework and TailwindCss for styling. It provides a set of Laravel components that can be used to build Laravel applications.

v0.1.2 2023-10-20 03:56 UTC

This package is auto-updated.

Last update: 2024-10-13 03:55:37 UTC


README

Laravel Logo

Total Downloads

About turbotech/turbotech-component

Build for SmartERP, and SmartPOS Components

Installation

You can install the package via composer:

composer require turbotech/turbotech-component

Usage

Inside providers of config/app.php

'providers' => [

    /*
    * Laravel Framework Service Providers...
    */
    ...
    TURBOTECH\Component\ServicesProvider::class,
]

Inside providers of composer.json

   "autoload": {
        "psr-4": {
            ...
            "TURBOTECH\\Component\\":"vendor/turbotech/turbotech-component/src"
        }
    },

Tailwindcss Styling Support:

Add ./vendor/turbotech/turbotech-component/src/view/*.blade.php inside content to compiling style from package.

content: [
    ...
    "./vendor/turbotech/turbotech-component/src/view/*.blade.php",
    "./vendor/turbotech/turbotech-component/src/view/**/*.blade.php",
    "./vendor/turbotech/turbotech-component/src/view/**/**/*.blade.php",
    "./vendor/turbotech/turbotech-component/src/view/**/**/**/*.blade.php",
],

If compiling via Laravel Modules package:

const path = require('path'); 
content: [
    ...
    path.join(__dirname, "./vendor/turbotech/turbotech-component/src/view/*.blade.php"),
    path.join(__dirname, "./vendor/turbotech/turbotech-component/src/view/**/*.blade.php"),
    path.join(__dirname, "./vendor/turbotech/turbotech-component/src/view/**/**/*.blade.php"),
    path.join(__dirname, "./vendor/turbotech/turbotech-component/src/view/**/**/**/*.blade.php"),
]

then compile css with Tailwindcss

npm run watch

to start server

php artisan serve

Contributors

Community

License

The MIT License (MIT). Please see License File for more information.