|
56 | 56 | unset($path); |
57 | 57 | } |
58 | 58 |
|
59 | | -/* |
60 | | -|-------------------------------------------------------------------------- |
61 | | -| Attach blade view |
62 | | -|-------------------------------------------------------------------------- |
63 | | -| |
64 | | -| Since blade no longer ships with Leaf by default, we |
65 | | -| can attach blade back to Leaf so you can use Leaf MVC |
66 | | -| as you've always used it. |
67 | | -| |
68 | | -*/ |
69 | | -Leaf\Config::attachView(\Leaf\Blade::class); |
70 | | - |
71 | 59 | /* |
72 | 60 | |-------------------------------------------------------------------------- |
73 | 61 | | Load Leaf configuration |
|
81 | 69 | */ |
82 | 70 | Leaf\Core::loadApplicationConfig(); |
83 | 71 |
|
84 | | -/* |
85 | | -|-------------------------------------------------------------------------- |
86 | | -| Sync Leaf Db with ORM and connect |
87 | | -|-------------------------------------------------------------------------- |
88 | | -| |
89 | | -| Sync Leaf Db with ORM and connect to the database |
90 | | -| This allows you to use Leaf Db without having |
91 | | -| to initialize it in your controllers. |
92 | | -| |
93 | | -| If you want to use a different connection from those |
94 | | -| used in your models, you can remove the line below and |
95 | | -| add your own connection with: |
96 | | -| db()->connect(...) |
97 | | -| |
98 | | -| **Uncomment the line below to use Leaf Db** |
99 | | -| **You don't need this line to use Leaf Auth** |
100 | | -*/ |
101 | | -// \Leaf\Database::initDb(); |
102 | | - |
103 | | -/* |
104 | | -|-------------------------------------------------------------------------- |
105 | | -| Load custom libraries |
106 | | -|-------------------------------------------------------------------------- |
107 | | -| |
108 | | -| You can load your custom libraries here. If you have |
109 | | -| anything defined in your lib folder, you can load |
110 | | -| them here. Simply uncomment the line below. |
111 | | -| |
112 | | -*/ |
113 | | -// \Leaf\Core::loadLibs(); |
114 | | - |
115 | 72 | /* |
116 | 73 | |-------------------------------------------------------------------------- |
117 | 74 | | Run your Leaf MVC application |
|
0 commit comments