laravel-larauicomp
Package is created to reduce the time to creating the ui componenets (like table) having same presentation with different attributes. It takes the data to put in the component and type of ui component and than renders the view according to the input, (*1)
Supported components
At this moment only one components is Supported
Table, (*2)
Installation
First Get It Through The Composer
composer require mchampaneri/larauicomp, (*3)
Copy The ServiceProvider To config/app.php in providers array
mchampaneri\larauicomp\UiCompServiceProvider::class
Copy The Facade To config/app.php in aliases array
mchampaneri\timeslicer\UiCompServiceProvider::class, (*4)
Second You have to publish the package
php artisan vendor:publish
This command will publish all assets file need by the package at appropriate direcotries., (*5)
After This Three Steps are ready to use the larauicomp, (*6)
Setup
At first you have to set the config file of larauicomp. Define the default css class for components otherwise it will take blank as default, (*7)
In the second step you are ready to use this package where ever you want, (*8)
Use
This is a library of views so you have to just include the view of component like this, (*9)
$data = // Array of Data
@include('uicomp::table',['data'=>$data])