Menu

## Generator
in package

Generator.php : 19

Automatically generates a "CrudkitServiceProvider.php" file based on the configured database in .env

To use this functionality setup and configure Laravel and Crudkit and open http://crudkit-base-url/auto-gererate

##### Tags

internal

### Table of Contents

__construct() : mixed
generateServiceProvider() : mixed
  Generates the CrudkitServiceProvider.php
generatePagesCode() : mixed
  Generates the PHP code for method definePages()
generateTablesCode() : mixed
  Generates the PHP code for method defineTalbes()
i() : mixed
  Sets the indention level
l() : mixed
  Write line

### Methods

#### __construct()

Generator.php : 40
`public __construct() : mixed`

##### Tags

internal

##### Return values

mixed —

#### generateServiceProvider()

Generator.php : 46

Generates the CrudkitServiceProvider.php

`public generateServiceProvider() : mixed`

##### Return values

mixed —

#### generatePagesCode()

Generator.php : 179

Generates the PHP code for method definePages()

`private generatePagesCode(array<string|int, Table> $tables) : mixed`

##### Parameters

$tables : array<string|int, Table>

##### Return values

mixed —

#### generateTablesCode()

Generator.php : 126

Generates the PHP code for method defineTalbes()

`private generateTablesCode(array<string|int, Table> $tables) : mixed`

##### Parameters

$tables : array<string|int, Table>

##### Return values

mixed —

#### i()

Generator.php : 226

Sets the indention level

`private i(int $level) : mixed`

##### Parameters

$level : int

##### Return values

mixed —

#### l()

Generator.php : 220

Write line

`private l([string $value = '' ]) : mixed`

##### Parameters

$value : string = ''

##### Return values

mixed —

## Search results