ClientsController.php 753 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Http\Controllers;
  3. use Illuminate\Http\Request;
  4. class ClientsController extends EntityController
  5. {
  6. protected $model = 'App\Models\Client';
  7. protected $title = 'clients';
  8. protected $routeIndex = 'clients.index';
  9. protected $routeShow = 'clients.show';
  10. protected $routeCreate = 'clients.create';
  11. protected $routeEdit = 'clients.edit';
  12. protected $routeStore = 'clients.store';
  13. protected $routeDestroy = 'clients.destroy';
  14. protected $validationRules = [
  15. 'firstname' => 'required|max:50',
  16. 'lastname' => 'required|max:50',
  17. 'phone' => 'max:20'
  18. ];
  19. protected $columns = [
  20. 'firstname' => 'text',
  21. 'lastname' => 'text',
  22. 'phone' => 'text'
  23. ];
  24. }