https://www.ritolab.com/entry/3
上記のサイトを参考にBasic認証を実装しましたが。
config.phpに書いてる情報でログインできません。
php
1<?php 2 3 /** 4 * Configuration for the "HTTP Very Basic Auth"-middleware 5 */ 6 return [ 7 // Username 8 'user' => 'admin', 9 10 // Password 11 'password' => 'awn36e5o45', 12 13 // Environments where the middleware is active 14 'envs' => [ 15 'local', 16 'development', 17 'testing' 18 ], 19 20 // Message to display if the user "opts out"/clicks "cancel" 21 'error_message' => 'You have to supply your credentials to access this resource.', 22 23 // If you prefer to use a view with your error message you can uncomment "error_view". 24 // This will superseed your default response message 25 // 'error_view' => 'very_basic_auth::default' 26 ];
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。