Download the PHP package namratalohani/filament-hr-system without Composer
On this page you can find all versions of the php package namratalohani/filament-hr-system. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download namratalohani/filament-hr-system
More information about namratalohani/filament-hr-system
Files in namratalohani/filament-hr-system
Package filament-hr-system
Short Description HR System made with laravel, filament and livewire
License MIT
Homepage https://github.com/namratalohani/filament-hr-system
Informations about the package filament-hr-system
Filament HR System
Filament HR System is a Laravel package designed to streamline HR management tasks. It integrates seamlessly with Laravel, Livewire, and Filament to provide prebuilt widgets, migrations, and customizable assets.
Features
- Attendance management widgets.
- Prebuilt Blade views.
- Easy migration setup.
- Customizable Tailwind CSS assets.
- Fully compatible with Filament.
Installation
To install the package, follow these steps:
-
Add the package to your project using Composer:
-
Publish the package assets and configuration:
This creates a configuration file in your project:
config/filament-hr-system.php
.
Setting Up the Package
Step 1: Publish Migrations
To add the package's migrations to your project, run:
Then apply the migrations to your database:
Step 2: Publish Blade Views
If you want to customize the Blade views provided by the package, publish them using:
This will copy the views to resources/views/vendor/filament-hr-system
.
Step 3: Update Tailwind CSS Configuration
To ensure the package's Blade files are processed correctly by Tailwind CSS, you need to update your tailwind.config.js
file.
-
Add the following path to the
content
section in your main Tailwind configuration file: -
If you are using Filament, update Filament's Tailwind configuration file (usually located at
filament/admin/tailwind.config.js
): - Rebuild your frontend assets:
Step 4: Register the Widget
To register the AttendanceWidget
in your Filament admin panel, modify your AdminPanelProvider
:
-
Locate your
AdminPanelProvider
file, usually inapp/Providers/Filament/AdminPanelProvider.php
. -
Add the
AttendanceWidget
to thewidgets
section: - Save the changes, and your widget will now be available in the Filament admin panel.
Customization
Step 1: Customize Assets
If you need to customize the package's CSS or JS, you can publish the assets:
The assets will be copied to the public/vendor/filament-hr-system
directory. Modify them as needed.
Example Project Setup
If you’re cloning the repository:
-
Clone the repository:
-
Navigate to the package directory:
-
Install dependencies:
- Follow the installation steps above to configure the package.
Troubleshooting
Issue: "No publishable resources for tag"
If you encounter an error like:
Ensure the package service provider is properly registered in your Laravel project. Check config/app.php
or verify that the extra
section in your composer.json
includes:
Contributing
Contributions are welcome! Please feel free to open issues or submit pull requests.
License
This package is open-sourced software licensed under the MIT license.
All versions of filament-hr-system with dependencies
filament/filament Version ^3.2
illuminate/contracts Version ^10.0||^11.0
illuminate/support Version ^10.0||^11.0