File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace InfyOm \Generator \Commands \Publish ;
4
4
5
+ use Illuminate \Support \Str ;
5
6
use InfyOm \Generator \Utils \FileUtil ;
6
7
use Symfony \Component \Console \Input \InputOption ;
7
8
@@ -64,7 +65,7 @@ private function createDirectories($viewsPath)
64
65
65
66
private function getViews ()
66
67
{
67
- return [
68
+ $ views = [
68
69
'layouts/app ' => 'layouts/app.blade.php ' ,
69
70
'layouts/sidebar ' => 'layouts/sidebar.blade.php ' ,
70
71
'layouts/datatables_css ' => 'layouts/datatables_css.blade.php ' ,
@@ -77,6 +78,21 @@ private function getViews()
77
78
'auth/reset ' => 'auth/passwords/reset.blade.php ' ,
78
79
'emails/password ' => 'auth/emails/password.blade.php ' ,
79
80
];
81
+
82
+ $ version = $ this ->getApplication ()->getVersion ();
83
+ if (Str::contains ($ version , '6. ' )) {
84
+ $ verifyView = [
85
+ 'auth/verify_6 ' => 'auth/verify.blade.php ' ,
86
+ ];
87
+ } else {
88
+ $ verifyView = [
89
+ 'auth/verify ' => 'auth/verify.blade.php ' ,
90
+ ];
91
+ }
92
+
93
+ $ views = array_merge ($ views , $ verifyView );
94
+
95
+ return $ views ;
80
96
}
81
97
82
98
private function getLocaleViews ()
Original file line number Diff line number Diff line change 1
- Auth::routes();
1
+ Auth::routes(['verify' => true] );
2
2
3
- Route::get('/home', 'HomeController@index');
3
+ Route::get('/home', 'HomeController@index')->middleware('verified') ;
You can’t perform that action at this time.
0 commit comments