Laravel Employees
, (*1)
This package for employees management on Laravel Framework., (*2)
Installation
Via Composer, (*3)
$ composer require nojes/laravel-employees
If you do not run Laravel 5.5 (or higher), then add the service provider in config/app.php
:, (*4)
nojes\employees\EmployeesServiceProvider::class,
If you do run the package on Laravel 5.5+, just run:, (*5)
$ php artisan employees:install
Optional you can publish the configuration to provide an own service provider stub.
(package auto-discovery), (*6)
$ php artisan vendor:publish --provider="nojes\employees\EmployeesServiceProvider"
Database seeding
If you want to have some example entries in the database, this command will seed models tables with test data:, (*7)
$ php artisan employees:seed
or, (*8)
$ php artisan db:seed --class="nojes\employees\database\seeds\EmployeesDatabaseSeeder"
or separately:, (*9)
Model |
Command |
Employee |
$ php artisan db:seed --class="nojes\employees\database\seeds\EmployeeTableSeeder" |
Position |
$ php artisan db:seed --class="nojes\employees\database\seeds\EmployeePositionTableSeeder" |
License
, (*10)
The BSD 3-Clause License (BSD-3-Clause). Please see License File for more information., (*11)