PHP code example of namratalohani / filament-hr-system

1. Go to this page and download the library: Download namratalohani/filament-hr-system library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

namratalohani / filament-hr-system example snippets


   use Namratalohani\FilamentHrSystem\Filament\Widgets\AttendanceWidget;

   class AdminPanelProvider extends PanelProvider
   {
       public function panel(Panel $panel): Panel
       {
           return $panel
               ->default()
               ->id('admin')
               ->path('admin')
               ->login()
               ->viteTheme('resources/css/filament/admin/theme.css')
               ->widgets([
                   AttendanceWidget::class,
               ]);
       }
   }
   
bash
   php artisan vendor:publish --tag=config
   
bash
php artisan vendor:publish --tag=migrations
bash
php artisan migrate
bash
php artisan vendor:publish --tag=views
js
   module.exports = {
       content: [
           "./resources/**/*.blade.php",
           "./vendor/namratalohani/**/*.blade.php",
           // other paths...
       ],
       theme: {
           extend: {},
       },
       plugins: [],
   };
   
js
   module.exports = {
       content: [
           "./resources/**/*.blade.php",
           "./vendor/filament/**/*.blade.php",
           "./vendor/namratalohani/**/*.blade.php",
           // other paths...
       ],
       theme: {
           extend: {},
       },
       plugins: [],
   };
   
bash
php artisan vendor:publish --tag=assets