Project
class Project
Properties
| static | $instance | ||
| string | $folder | ||
| string | $name | ||
| string | $description |
Methods
__construct($data)
No description
string
root(string $path = "")
Build an absolute path to project folder resource
static
boot()
Executes the project boot file if exists
array
getLanguages()
Get the available languages for the project.
array
hasLanguage(string $lang)
Get the available languages for the project.
string
getDefaultLanguage()
Get the default language for the project.
Collection
getModules()
Get the project active modules
bool
hasModule(string $module)
Get if a project has a module
Details
at line 15
__construct($data)
No description
at line 27
static null|Project
get()
Get the current project.
at line 60
string
root(string $path = "")
Build an absolute path to project folder resource
at line 70
static
boot()
Executes the project boot file if exists
at line 82
array
getLanguages()
Get the available languages for the project.
at line 91
array
hasLanguage(string $lang)
Get the available languages for the project.
at line 100
string
getDefaultLanguage()
Get the default language for the project.
at line 109
Collection
getModules()
Get the project active modules
at line 122
bool
hasModule(string $module)
Get if a project has a module