ScheduleController.php 753 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace App\Http\Controllers;
  3. use Illuminate\Http\Request;
  4. class ScheduleController extends EntityController
  5. {
  6. protected $model = 'App\Models\Schedule';
  7. protected $title = 'schedule';
  8. protected $routeIndex = 'schedule.index';
  9. protected $routeShow = 'schedule.show';
  10. protected $routeCreate = 'schedule.create';
  11. protected $routeEdit = 'schedule.edit';
  12. protected $routeStore = 'schedule.store';
  13. protected $routeDestroy = 'schedule.destroy';
  14. protected $validationRules = [
  15. 'timework_id' => 'required|integer',
  16. 'employee_id' => 'required|integer',
  17. ];
  18. protected $columns = [
  19. 'timework_id' => 'number',
  20. 'employee_id' => 'number',
  21. 'salary' => 'decimal'
  22. ];
  23. }