Menu

## CrudkitServiceProvider extends ServiceProvider
in package

CrudkitServiceProvider.php : 34

This class is used to create your application.

Populate the following methods to build your application:

defineTables()

defineRelations()

definePages()

defineUsers()

### Table of Contents

$authHelper : AuthHelper
$pages : array<string|int, PageDescriptor>
$pageStore : PageStore
$tables : array<string|int, TableDescriptor>
$users : array<string|int, User>
defineMenuLinks() : mixed
  Add additional items to the menu and set icons for categories
definePages() : array<string|int, PageDescriptor>
  Populate this methods to define the pages (views) according to the already definded tables.
defineRelations() : mixed
  Populate this methods to define table relations (mostly many to one).
defineTables() : array<string|int, TableDescriptor>
  Populate this methods to define the tables plus columns used by your application.
defineUsers() : AuthHelper
  Populate this methods to define the Logins for this application.

### Properties

#### $authHelper

CrudkitServiceProvider.php : 43
`private AuthHelper $authHelper = null`

#### $pages

CrudkitServiceProvider.php : 39
`private array<string|int, PageDescriptor> $pages = []`

#### $pageStore

CrudkitServiceProvider.php : 45
`private PageStore $pageStore = null`

#### $tables

CrudkitServiceProvider.php : 37
`private array<string|int, TableDescriptor> $tables = []`

#### $users

CrudkitServiceProvider.php : 41
`private array<string|int, User> $users = []`

### Methods

#### defineMenuLinks()

CrudkitServiceProvider.php : 204

Add additional items to the menu and set icons for categories

`private defineMenuLinks() : mixed`

Use $this->pageStore->addMenuLink(...);

##### Tags

see
  PageStore

##### Return values

mixed —

#### definePages()

CrudkitServiceProvider.php : 150

Populate this methods to define the pages (views) according to the already definded tables.

`private definePages() : array<string|int, PageDescriptor>`

##### Tags

see
  PageDescriptor

##### Return values

array<string|int, PageDescriptor> —

#### defineRelations()

CrudkitServiceProvider.php : 129

Populate this methods to define table relations (mostly many to one).

`private defineRelations() : mixed`

Use "$this->tables" which you have defined in method defineTables().

##### Tags

see
  TableDescriptor

##### Return values

mixed —

#### defineTables()

CrudkitServiceProvider.php : 95

Populate this methods to define the tables plus columns used by your application.

`private defineTables() : array<string|int, TableDescriptor>`

##### Return values

array<string|int, TableDescriptor> —

#### defineUsers()

CrudkitServiceProvider.php : 235

Populate this methods to define the Logins for this application.

`private defineUsers() : AuthHelper`

Optional: define RestrictionSet and/or Startpage for each User. Default login (administrator) is definded in crudkit config.

##### Tags

see
  CrudkitUser
see
  Startpage
see
  RestrictionSet

##### Return values

AuthHelper —

## Search results