Kaynağa Gözat

SQL菜單修正、預設環境配置模式修正、後台登入路徑修正

ringechchen 5 yıl önce
ebeveyn
işleme
3e2e6aba89

+ 3
- 3
sampleProject/.env Dosyayı Görüntüle

@@ -7,10 +7,10 @@ APP_NAME=ringeProject                                       # 可填寫程式資
7 7
 
8 8
 DB_CONNECTION=mysql                                         # 此行基本上不需要改,用 mysql/maria 都適用
9 9
 DB_HOST=127.0.0.1                                           # 若按照教學進行則可指定本機,不然可視當前環境另外指定
10
-DB_PORT=3306                                                # mysql 預設的 port 可不用修改
10
+DB_PORT=3307                                                # mysql 預設的 port 可不用修改
11 11
 DB_DATABASE=ringeProject                                    # 指定連接的資料庫名稱,可視環境修改
12
-DB_USERNAME=root                                            # mysql 帳號
13
-DB_PASSWORD=root                                            # mysql 密碼
12
+DB_USERNAME=ringeProject                                    # mysql 帳號
13
+DB_PASSWORD=ringeProject                                    # mysql 密碼
14 14
 
15 15
 BROADCAST_DRIVER=log                                        # 不需修改或視情況修改
16 16
 CACHE_DRIVER=file                                           # 不需修改或視情況修改

+ 1
- 1
sampleProject/app/Http/Controllers/Auth/LoginController.php Dosyayı Görüntüle

@@ -25,7 +25,7 @@ class LoginController extends Controller
25 25
      *
26 26
      * @var string
27 27
      */
28
-    protected $redirectTo = '/home';
28
+    protected $redirectTo = '/backend';
29 29
 
30 30
     /**
31 31
      * Create a new controller instance.

+ 1
- 1
sampleProject/app/Http/Controllers/Auth/RegisterController.php Dosyayı Görüntüle

@@ -27,7 +27,7 @@ class RegisterController extends Controller
27 27
      *
28 28
      * @var string
29 29
      */
30
-    protected $redirectTo = '/home';
30
+    protected $redirectTo = '/backend';
31 31
 
32 32
     /**
33 33
      * Create a new controller instance.

+ 1
- 1
sampleProject/app/Http/Controllers/Auth/ResetPasswordController.php Dosyayı Görüntüle

@@ -25,7 +25,7 @@ class ResetPasswordController extends Controller
25 25
      *
26 26
      * @var string
27 27
      */
28
-    protected $redirectTo = '/home';
28
+    protected $redirectTo = '/backend';
29 29
 
30 30
     /**
31 31
      * Create a new controller instance.

+ 1
- 1
sampleProject/bootstrap/app.php Dosyayı Görüntüle

@@ -54,7 +54,7 @@ $app->singleton(
54 54
 
55 55
 // 環境偵測(需要事先在 php.ini 中做好相關設定,若線上環境不支援修改則直接套用預設的 .env)
56 56
 $ore = get_cfg_var('ogilvy.runtime.environment');
57
-$ore = !empty($ore) ? $ore : 'pro';
57
+$ore = !empty($ore) ? $ore : 'dev';
58 58
 if(!defined('APP_MODE')){
59 59
     define('APP_MODE', $ore);
60 60
 }

+ 1
- 1
tableSchema.sql Dosyayı Görüntüle

@@ -143,7 +143,7 @@ CREATE TABLE `v_leftmenu` (
143 143
 -- 導出  視圖 sampleProject.v_leftmenu 結構
144 144
 -- 移除臨時表並創建最終視圖結構
145 145
 DROP TABLE IF EXISTS `v_leftmenu`;
146
-CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_leftmenu` AS select `funmenu`.`icon` AS `icon`,`funmenu`.`MenuName` AS `MenuName`,`funmenu`.`Corder` AS `FunMenuCorder`,`funmenudetail`.`FunMenuId` AS `FunMenuId`,`funmenudetail`.`FunId` AS `FunId`,`functions`.`FunName` AS `FunName`,`functions`.`FunLink` AS `FunLink`,`functions`.`FunDesc` AS `FunDesc`,`functions`.`Valid` AS `Valid`,`functions`.`created_at` AS `created_at`,`functions`.`updated_at` AS `updated_at`,`functions`.`Oid` AS `Oid`,`funmenudetail`.`Corder` AS `FunMenuDetailCOrder` from ((`funmenu` join `funmenudetail` on((`funmenu`.`id` = `funmenudetail`.`FunMenuId`))) join `functions` on((`funmenudetail`.`FunId` = `functions`.`id`))) where `functions`.`id` in (select `Functions_1`.`id` from `functions` `Functions_1` where (locate((convert(concat(',',`Functions_1`.`id`,',') using utf8) collate utf8_unicode_ci),convert(concat(',',(select `funusergroups`.`FunList` from `funusergroups` where (`funusergroups`.`id` = 1)),',') using utf8)) > 0)) order by `funmenu`.`Corder`,`funmenudetail`.`Corder` limit 0,1000;
146
+CREATE VIEW `v_leftmenu` AS select `funmenu`.`icon` AS `icon`,`funmenu`.`MenuName` AS `MenuName`,`funmenu`.`Corder` AS `FunMenuCorder`,`funmenudetail`.`FunMenuId` AS `FunMenuId`,`funmenudetail`.`FunId` AS `FunId`,`functions`.`FunName` AS `FunName`,`functions`.`FunLink` AS `FunLink`,`functions`.`FunDesc` AS `FunDesc`,`functions`.`Valid` AS `Valid`,`functions`.`created_at` AS `created_at`,`functions`.`updated_at` AS `updated_at`,`functions`.`Oid` AS `Oid`,`funmenudetail`.`Corder` AS `FunMenuDetailCOrder` from ((`funmenu` join `funmenudetail` on((`funmenu`.`id` = `funmenudetail`.`FunMenuId`))) join `functions` on((`funmenudetail`.`FunId` = `functions`.`id`))) where `functions`.`id` in (select `Functions_1`.`id` from `functions` `Functions_1` where (locate((convert(concat(',',`Functions_1`.`id`,',') using utf8) collate utf8_unicode_ci),convert(concat(',',(select `funusergroups`.`FunList` from `funusergroups` where (`funusergroups`.`id` = 1)),',') using utf8)) > 0)) order by `funmenu`.`Corder`,`funmenudetail`.`Corder` limit 0,1000;
147 147
 
148 148
 /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
149 149
 /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;