final class Path

Path class can help to get the various paths like root folder, stub folder, model folder and so on.

Methods

static string
stub()

Get stubs folder path.

static string
model()

Get Models folder path.

static string
seeder()

Get seeders folder path.

static string
factory()

Get factory folder path.

static string
database()

Get database folder path.

static string
migration()

Get migration folder path.

static string
resource()

Get resource folder path.

static string
root()

Get root folder path.

static string
testBootstrap()

Get tests/Bootstrap folder path.

static string
testgen()

Get tests/Generate folder path.

static string
testExpected()

Get tests/Expected folder path.

Details

at line 17
static string stub()

Get stubs folder path.

Return Value

string

The stub folder path

Examples

./stubs/

at line 29
static string model()

Get Models folder path.

Return Value

string

The model folder path

Examples

./dist/app/Models/

at line 41
static string seeder()

Get seeders folder path.

Return Value

string

The seeder folder path

Examples

./dist/database/seeders/

at line 53
static string factory()

Get factory folder path.

Return Value

string

The factory folder path

Examples

./dist/database/factories/

at line 65
static string database()

Get database folder path.

Return Value

string

The database folder path

Examples

./database/

at line 77
static string migration()

Get migration folder path.

Return Value

string

The migration folder path

Examples

./dist/database/migrations/

at line 89
static string resource()

Get resource folder path.

Return Value

string

The resource folder path

Examples

./resources/

at line 99
static string root()

Get root folder path.

Return Value

string

The root folder path

at line 109
static string testBootstrap()

Get tests/Bootstrap folder path.

Return Value

string

The tests/Bootstrap folder path.

at line 121
static string testgen()

internal  Don't use this method except testing.
 

Get tests/Generate folder path.

Return Value

string

This method returns the tests/Generate folder path for testing.

at line 133
static string testExpected()

internal  Don't use this method except testing.
 

Get tests/Expected folder path.

Return Value

string

This method returns the tests/Expected folder path for testing.