ThunderID/HR_SYSTEM


Updated HR System

Language: PHP


HR SYSTEM

Updating

  1. Composer update
  2. Composer dump-autoload
  3. Config database.php
  4. Run php artisan migrate
  5. Run php artisan db:seed

Using Command in Controller

  1. Running php artisan serv
  2. Open localhost:8000
  3. It is an example; usage of command in controller (see App/Http/Controllers/Organisation/OrganisationController.php)
  4. Formatting of using command, see below :

Getting

$this->dispatch(new Getting(new (Modelname), (array of search), (array of sort) , (current page), (take how much perpage)))

NOTES : how much per page has rule : 1 as first, 2 - 99 as get, 100 as all, if you leave it blank, it will initiate as 12

Saving

$this->dispatch(new Saving(new {{Modelname}}, {{attributes in array}}, {{id of model, leave it null for new records}}, new {{RelationshipModel, do not initiate this if there is no relationship, only works for belongsto reltionship}}, {{Relationship model array, depend if you had relationship model or not}}, {{array of pivot data if only the relationship is belongstomany (using sync)}}))

Deleting

$this->dispatch(new Deleting(new {{Modelname}}, {{itemid}}))

Project Statistics

Sourcerank 2
Repository Size 34 MB
Stars 0
Forks 7
Watchers 6
Open issues 16
Dependencies 64
Contributors 4
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Chelsy Mooy Agil Mahendra budi7 Erick Mo

Something wrong with this page? Make a suggestion

Last synced: 2016-08-09 21:18:28 UTC

Login to resync this repository