Completed
Push — master ( 10eed4...2367ee )
by Sergi Tur
10:06
created

AdminLTE::noGuestForgotPasswordController()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Acacha\AdminLTETemplateLaravel;
4
5
/**
6
 * Class AdminLTE.
7
 */
8
class AdminLTE
9
{
10
    /**
11
     * Home controller copy path.
12
     *
13
     * @return array
14
     */
15
    public function homeController()
16
    {
17
        return [
18
            ADMINLTETEMPLATE_PATH.'/src/stubs/HomeController.stub' => app_path('Http/Controllers/HomeController.php'),
19
        ];
20
    }
21
22
    /**
23
     * Auth register controller copy path.
24
     *
25
     * @return array
26
     */
27
    public function registerController()
28
    {
29
        return [
30
            ADMINLTETEMPLATE_PATH.'/src/stubs/RegisterController.stub' =>
31
                app_path('Http/Controllers/Auth/RegisterController.php'),
32
        ];
33
    }
34
35
    /**
36
     * Auth login controller copy path.
37
     *
38
     * @return array
39
     */
40
    public function loginController()
41
    {
42
        return [
43
            ADMINLTETEMPLATE_PATH.'/src/stubs/LoginController.stub' =>
44
                app_path('Http/Controllers/Auth/LoginController.php'),
45
        ];
46
    }
47
48
    /**
49
     * Auth forgot password controller copy path.
50
     *
51
     * @return array
52
     */
53
    public function forgotPasswordController()
54
    {
55
        return [
56
            ADMINLTETEMPLATE_PATH.'/src/stubs/ForgotPasswordController.stub' =>
57
                app_path('Http/Controllers/Auth/ForgotPasswordController.php'),
58
        ];
59
    }
60
61
    /**
62
     * No guest Auth forgot password controller copy path.
63
     *
64
     * @return array
65
     */
66
    public function noGuestForgotPasswordController()
67
    {
68
        return [
69
            ADMINLTETEMPLATE_PATH.'/src/stubs/NoGuestForgotPasswordController.stub' =>
70
                app_path('Http/Controllers/Auth/NoGuestForgotPasswordController.php'),
71
        ];
72
    }
73
74
    /**
75
     * Auth reset password controller copy path.
76
     *
77
     * @return array
78
     */
79
    public function resetPasswordController()
80
    {
81
        return [
82
            ADMINLTETEMPLATE_PATH.'/src/stubs/ResetPasswordController.stub' =>
83
                app_path('Http/Controllers/Auth/ResetPasswordController.php'),
84
        ];
85
    }
86
87
    /**
88
     * Public assets copy path.
89
     *
90
     * @return array
91
     */
92
    public function publicAssets()
93
    {
94
        return [
95
            ADMINLTETEMPLATE_PATH.'/public/img'                 => public_path('img'),
96
            ADMINLTETEMPLATE_PATH.'/public/css'                 => public_path('css'),
97
            ADMINLTETEMPLATE_PATH.'/public/js'                  => public_path('js'),
98
            ADMINLTETEMPLATE_PATH.'/public/plugins'             => public_path('plugins'),
99
            ADMINLTETEMPLATE_PATH.'/public/fonts'               => public_path('fonts'),
100
            ADMINLTETEMPLATE_PATH.'/public/mix-manifest.json'   => public_path('mix-manifest.json'),
101
        ];
102
    }
103
104
    /**
105
     * Only views to overwrite.
106
     *
107
     * @return array
108
     */
109
    public function viewsToOverwrite()
110
    {
111
        return [
112
            ADMINLTETEMPLATE_PATH.'/resources/views/errors'            =>
113
                resource_path('views/errors'),
114
            ADMINLTETEMPLATE_PATH.'/resources/views/welcome.blade.php' =>
115
                resource_path('views/welcome.blade.php'),
116
            ADMINLTETEMPLATE_PATH.'/resources/views/layouts/partials/sidebar.blade.php' =>
117
                resource_path('views/vendor/adminlte/layouts/partials/sidebar.blade.php'),
118
        ];
119
    }
120
121
    /**
122
     * Path of sidebar.
123
     *
124
     * @return array
125
     */
126
    public function sidebarView()
127
    {
128
        return [
129
            ADMINLTETEMPLATE_PATH.'/resources/views/layouts/partials/sidebar.blade.php' =>
130
                resource_path('views/vendor/adminlte/layouts/partials/sidebar.blade.php'),
131
        ];
132
    }
133
134
    /**
135
     * Views copy path.
136
     *
137
     * @return array
138
     */
139
    public function views()
140
    {
141
        return [
142
            ADMINLTETEMPLATE_PATH.'/resources/views/auth'              =>
143
                resource_path('views/vendor/adminlte/auth'),
144
            ADMINLTETEMPLATE_PATH.'/resources/views/errors'            =>
145
                resource_path('views/vendor/adminlte/errors'),
146
            ADMINLTETEMPLATE_PATH.'/resources/views/layouts'           =>
147
                resource_path('views/vendor/adminlte/layouts'),
148
            ADMINLTETEMPLATE_PATH.'/resources/views/home.blade.php'    =>
149
                resource_path('views/vendor/adminlte/home.blade.php'),
150
            ADMINLTETEMPLATE_PATH.'/resources/views/welcome.blade.php' =>
151
                resource_path('views/welcome.blade.php'),
152
        ];
153
    }
154
155
    /**
156
     * Tests copy path.
157
     *
158
     * @return array
159
     */
160
    public function tests()
161
    {
162
        return [
163
            ADMINLTETEMPLATE_PATH.'/tests'       => base_path('tests'),
164
            ADMINLTETEMPLATE_PATH.'/phpunit.xml' => base_path('phpunit.xml'),
165
        ];
166
    }
167
168
    /**
169
     * Resource assets copy path.
170
     *
171
     * @return array
172
     */
173
    public function resourceAssets()
174
    {
175
        return [
176
            ADMINLTETEMPLATE_PATH.'/resources/assets/css' => resource_path('assets/css'),
177
            ADMINLTETEMPLATE_PATH.'/resources/assets/img' => resource_path('assets/img'),
178
            ADMINLTETEMPLATE_PATH.'/resources/assets/less' => resource_path('assets/less'),
179
            ADMINLTETEMPLATE_PATH.'/resources/assets/sass' => resource_path('assets/sass'),
180
            ADMINLTETEMPLATE_PATH.'/resources/assets/js'   => resource_path('assets/js'),
181
            ADMINLTETEMPLATE_PATH.'/webpack.mix.js'        => base_path('webpack.mix.js'),
182
            ADMINLTETEMPLATE_PATH.'/package.json'          => base_path('package.json'),
183
        ];
184
    }
185
186
    /**
187
     * Languages assets copy path.
188
     *
189
     * @return array
190
     */
191
    public function languages()
192
    {
193
        return [
194
            ADMINLTETEMPLATE_PATH.'/resources/lang' => resource_path('lang/vendor/adminlte_lang'),
195
        ];
196
    }
197
198
    /**
199
     * Gravatar path.
200
     *
201
     * @return array
202
     */
203
    public function gravatar()
204
    {
205
        return [
206
            base_path().'/vendor/creativeorange/gravatar/config/gravatar.php' => config_path('gravatar.php'),
207
        ];
208
    }
209
210
    /**
211
     * Config path.
212
     *
213
     * @return array
214
     */
215
    public function config()
216
    {
217
        return [
218
            ADMINLTETEMPLATE_PATH.'/config/adminlte.php' => config_path('adminlte.php'),
219
        ];
220
    }
221
222
    /**
223
     * Spatie menu path.
224
     *
225
     * @return array
226
     */
227
    public function spatieMenu()
228
    {
229
        return [
230
            ADMINLTETEMPLATE_PATH.'/resources/views/layouts/partials/sidebar_with_spatie_menu.blade.php' =>
231
                resource_path('views/vendor/adminlte/layouts/partials/sidebar.blade.php')
232
        ];
233
    }
234
235
    /**
236
     * Menu path.
237
     *
238
     * @return array
239
     */
240
    public function menu()
241
    {
242
        return [
243
            ADMINLTETEMPLATE_PATH.'/config/menu.php' =>
244
                config_path('menu.php')
245
        ];
246
    }
247
248
    /**
249
     * Web routes path.
250
     *
251
     * @return array
252
     */
253
    public function webroutes()
254
    {
255
        return [
256
            ADMINLTETEMPLATE_PATH.'/routes/web.php' =>
257
                base_path('routes/web.php')
258
        ];
259
    }
260
261
    /**
262
     * Api routes path.
263
     *
264
     * @return array
265
     */
266
    public function apiroutes()
267
    {
268
        return [
269
            ADMINLTETEMPLATE_PATH.'/routes/api.php' =>
270
                base_path('routes/api.php')
271
        ];
272
    }
273
274
    /**
275
     * Auth config file copy path.
276
     *
277
     * @return array
278
     */
279
    public function authConfig()
280
    {
281
        return [
282
            ADMINLTETEMPLATE_PATH.'/src/stubs/auth.php.stub' => config_path('auth.php'),
283
        ];
284
    }
285
286
    /**
287
     * User class copy path.
288
     *
289
     * @return array
290
     */
291
    public function userClass()
292
    {
293
        return [
294
            ADMINLTETEMPLATE_PATH.'/src/stubs/User.php.stub' => app_path('User.php'),
295
        ];
296
    }
297
298
    /**
299
     * AppServiceProvider class copy path.
300
     *
301
     * @return array
302
     */
303
    public function appServiceProviderClass()
304
    {
305
        return [
306
            ADMINLTETEMPLATE_PATH.'/src/stubs/AppServiceProvider.php.stub' =>
307
                app_path('Providers/AppServiceProvider.php'),
308
        ];
309
    }
310
311
    /**
312
     * Dusk environment files copy path.
313
     *
314
     * @return array
315
     */
316
    public function duskEnvironment()
317
    {
318
        return [
319
            ADMINLTETEMPLATE_PATH.'/.env.dusk.local'        => base_path('.env.dusk.local'),
320
            ADMINLTETEMPLATE_PATH.'/.env.dusk.testing'      => base_path('.env.dusk.testing'),
321
        ];
322
    }
323
324
    /**
325
     * Database config copy path.
326
     *
327
     * @return array
328
     */
329
    public function databaseConfig()
330
    {
331
        return [
332
            ADMINLTETEMPLATE_PATH.'/config/database.php'    => config_path('database.php'),
333
        ];
334
    }
335
}
336