Skip to content

nojes/laravel-employees

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Employees

Latest Version on Packagist

This package for employees management on Laravel Framework.

Installation

Via Composer

$ composer require nojes/laravel-employees

If you do not run Laravel 5.5 (or higher), then add the service provider in config/app.php:

nojes\employees\EmployeesServiceProvider::class,

If you do run the package on Laravel 5.5+, just run:

$ php artisan employees:install

Optional you can publish the configuration to provide an own service provider stub. (package auto-discovery)

$ 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:

$ php artisan employees:seed

or

$ php artisan db:seed --class="nojes\employees\database\seeds\EmployeesDatabaseSeeder"

or separately:

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

Software License

The BSD 3-Clause License (BSD-3-Clause). Please see License File for more information.