laravel-livewire/uc-modules

laravel livewire user primary modules

dev-main 2025-05-17 10:07 UTC

This package is auto-updated.

Last update: 2025-05-17 10:08:32 UTC


README

laravel-livewire/uc-modules library base on PHP Laravel framework, contains primary modules presets (status, users control, abilities and roles, website setting )to make building the website or application easier development by "samer tawil" eng.samertawil@gmail.com

Installation

You can install the package via composer:

composer require laravel-livewire/uc-modules

Register package by add provider services in bootstrap folder

 uc\modules\UcModulesServiceProvider::class, 

publish :

php artisan vendor:publish --provider="uc\modules\UcModulesServiceProvider" 
Attention, overwrite User model if you not customize it
php artisan vendor:publish --provider="uc\modules\UcModulesServiceProvider" --tag="userModel" --force
php artisan livewire:publish --config
php artisan flasher:install
php artisan migrate;
php artisan db:seed StatusSeeder
 Route::group( [ 'prefix' => LaravelLocalization::setLocale(), 'middleware' => [ 'localeSessionRedirect', 'localizationRedirect', 'localeViewPath' ] ], function(){

    Livewire::setUpdateRoute(function ($handle) {
        return Route::post('/livewire/update', $handle);
    });

    
     Route::get('test',Test::class);
    
     include __DIR__.'/user.php';

     include __DIR__.'/setting.php';
	 
	 include __DIR__.'/status.php';
       
	 include __DIR__.'/permission.php';
	 
	 include __DIR__ . '/citzenServices.php';

    });

Helper function publish : edit composer.json autoload section and add

 ,
        "files": [
            "app/helper/uploads.php",
            "app/helper/generalfunctions.php"
        ]
 composer dump-autoload;

Add constant value for attributesConst.php