final class Path (View source)

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
nova()

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

static string stub()

Get stubs folder path.

Return Value

string

The stub folder path

Examples

./stubs/

static string model()

Get Models folder path.

Return Value

string

The model folder path

Examples

./dist/app/Models/

static string nova()

Get Models folder path.

Return Value

string

The model folder path

Examples

./dist/app/Nova/

static string seeder()

Get seeders folder path.

Return Value

string

The seeder folder path

Examples

./dist/database/seeders/

static string factory()

Get factory folder path.

Return Value

string

The factory folder path

Examples

./dist/database/factories/

static string database()

Get database folder path.

Return Value

string

The database folder path

Examples

./database/

static string migration()

Get migration folder path.

Return Value

string

The migration folder path

Examples

./dist/database/migrations/

static string resource()

Get resource folder path.

Return Value

string

The resource folder path

Examples

./resources/

static string root()

Get root folder path.

Return Value

string

The root folder path

static string testBootstrap()

Get tests/Bootstrap folder path.

Return Value

string

The tests/Bootstrap folder path.

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.

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.