@@ -57,28 +57,23 @@ public function registerAssets()
57
57
$ this ->mergeConfigFrom ($ configPath , 'oauth2 ' );
58
58
$ this ->publishes ([$ configPath => config_path ('oauth2.php ' )], 'config ' );
59
59
$ this ->publishes ([
60
- $ mFrom . '2014_04_24_110151_create_oauth_scopes_table.php ' => $ mTo . $ this -> ts ( 1 ) . ' create_oauth_scopes_table .php ' ,
61
- $ mFrom . '2014_04_24_110304_create_oauth_grants_table.php ' => $ mTo . $ this -> ts ( 2 ) . ' create_oauth_grants_table .php ' ,
62
- $ mFrom . '2014_04_24_110403_create_oauth_grant_scopes_table.php ' => $ mTo . $ this -> ts ( 3 ) . ' create_oauth_grant_scopes_table .php ' ,
63
- $ mFrom . '2014_04_24_110459_create_oauth_clients_table.php ' => $ mTo . $ this -> ts ( 4 ) . ' create_oauth_clients_table .php ' ,
64
- $ mFrom . '2014_04_24_110557_create_oauth_client_endpoints_table.php ' => $ mTo . $ this -> ts ( 5 ) . ' create_oauth_client_endpoints_table .php ' ,
65
- $ mFrom . '2014_04_24_110705_create_oauth_client_scopes_table.php ' => $ mTo . $ this -> ts ( 6 ) . ' create_oauth_client_scopes_table .php ' ,
66
- $ mFrom . '2014_04_24_110817_create_oauth_client_grants_table.php ' => $ mTo . $ this -> ts ( 7 ) . ' create_oauth_client_grants_table .php ' ,
67
- $ mFrom . '2014_04_24_111002_create_oauth_sessions_table.php ' => $ mTo . $ this -> ts ( 8 ) . ' create_oauth_sessions_table .php ' ,
68
- $ mFrom . '2014_04_24_111109_create_oauth_session_scopes_table.php ' => $ mTo . $ this -> ts ( 9 ) . ' create_oauth_session_scopes_table .php ' ,
69
- $ mFrom . '2014_04_24_111254_create_oauth_auth_codes_table.php ' => $ mTo . $ this -> ts ( 10 ) . ' create_oauth_auth_codes_table .php ' ,
70
- $ mFrom . '2014_04_24_111403_create_oauth_auth_code_scopes_table.php ' => $ mTo . $ this -> ts ( 11 ) . ' create_oauth_auth_code_scopes_table .php ' ,
71
- $ mFrom . '2014_04_24_111518_create_oauth_access_tokens_table.php ' => $ mTo . $ this -> ts ( 12 ) . ' create_oauth_access_tokens_table .php ' ,
72
- $ mFrom . '2014_04_24_111657_create_oauth_access_token_scopes_table.php ' => $ mTo . $ this -> ts ( 13 ) . ' create_oauth_access_token_scopes_table .php ' ,
73
- $ mFrom . '2014_04_24_111810_create_oauth_refresh_tokens_table.php ' => $ mTo . $ this -> ts ( 14 ) . ' create_oauth_refresh_tokens_table .php ' ,
60
+ $ mFrom . '2014_04_24_110151_create_oauth_scopes_table.php ' => $ mTo . ' 2015_01_01_000001_create_oauth_scopes_table .php ' ,
61
+ $ mFrom . '2014_04_24_110304_create_oauth_grants_table.php ' => $ mTo . ' 2015_01_01_000002_create_oauth_grants_table .php ' ,
62
+ $ mFrom . '2014_04_24_110403_create_oauth_grant_scopes_table.php ' => $ mTo . ' 2015_01_01_000003_create_oauth_grant_scopes_table .php ' ,
63
+ $ mFrom . '2014_04_24_110459_create_oauth_clients_table.php ' => $ mTo . ' 2015_01_01_000004_create_oauth_clients_table .php ' ,
64
+ $ mFrom . '2014_04_24_110557_create_oauth_client_endpoints_table.php ' => $ mTo . ' 2015_01_01_000005_create_oauth_client_endpoints_table .php ' ,
65
+ $ mFrom . '2014_04_24_110705_create_oauth_client_scopes_table.php ' => $ mTo . ' 2015_01_01_000006_create_oauth_client_scopes_table .php ' ,
66
+ $ mFrom . '2014_04_24_110817_create_oauth_client_grants_table.php ' => $ mTo . ' 2015_01_01_000007_create_oauth_client_grants_table .php ' ,
67
+ $ mFrom . '2014_04_24_111002_create_oauth_sessions_table.php ' => $ mTo . ' 2015_01_01_000008_create_oauth_sessions_table .php ' ,
68
+ $ mFrom . '2014_04_24_111109_create_oauth_session_scopes_table.php ' => $ mTo . ' 2015_01_01_000009_create_oauth_session_scopes_table .php ' ,
69
+ $ mFrom . '2014_04_24_111254_create_oauth_auth_codes_table.php ' => $ mTo . ' 2015_01_01_000010_create_oauth_auth_codes_table .php ' ,
70
+ $ mFrom . '2014_04_24_111403_create_oauth_auth_code_scopes_table.php ' => $ mTo . ' 2015_01_01_000011_create_oauth_auth_code_scopes_table .php ' ,
71
+ $ mFrom . '2014_04_24_111518_create_oauth_access_tokens_table.php ' => $ mTo . ' 2015_01_01_000012_create_oauth_access_tokens_table .php ' ,
72
+ $ mFrom . '2014_04_24_111657_create_oauth_access_token_scopes_table.php ' => $ mTo . ' 2015_01_01_000013_create_oauth_access_token_scopes_table .php ' ,
73
+ $ mFrom . '2014_04_24_111810_create_oauth_refresh_tokens_table.php ' => $ mTo . ' 2015_01_01_000014_create_oauth_refresh_tokens_table .php ' ,
74
74
], 'migrations ' );
75
75
}
76
76
77
- protected function ts ($ seconds )
78
- {
79
- return Carbon::now ()->addSeconds ($ seconds )->format ('Y_m_d_His ' ).'_ ' ;
80
- }
81
-
82
77
/**
83
78
* Register the Authorization server with the IoC container
84
79
* @return void
0 commit comments