現在このサイトに従って、メールを送信できるように実装しています。
サイト内「仮登録完了画面の追加」を行っている際に、/registerによって呼び出されるメソッドregister()の中身を変更したいのですが、どこに繋がっているのかが、インターネットでいろいろ検索しても分かりません。
いろいろ探ってみた結果、以下の2か所でregistar()を見つけたのですが、そのどちらを上記サイトの通りに変更しても、エラーが発生します。
C:\Users\〇〇\laravel\lab\vendor\laravel\framework\src\Illuminate\Auth\AuthServiceProvider.php
1class AuthServiceProvider extends ServiceProvider 2{ 3 /** 4 * Register the service provider. 5 * 6 * @return void 7 */ 8 public function register() 9 { 10 $this->registerAuthenticator(); 11 $this->registerUserResolver(); 12 $this->registerAccessGate(); 13 $this->registerRequirePassword(); 14 $this->registerRequestRebindHandler(); 15 $this->registerEventRebindHandler(); 16 } 17
C:\Users\吉田裕哉\laravel\lab\vendor\laravel\framework\src\Illuminate\Routing\ServiceProvider.php
1 2 public function register() 3 { 4 // 5 } 6
registar()はどこにあるのでしょうか。
追加情報
registar()のリスト
1 2vendor\facade\ignition\src\DumpRecorder\DumpRecorder.php:25: public function register(): self 3vendor\facade\ignition\src\LogRecorder\LogRecorder.php:22: public function register(): self 4vendor\facade\ignition\src\QueryRecorder\QueryRecorder.php:21: public function register() 5 6vendor\facade\ignition\src\IgnitionServiceProvider.php:90: public function register() 7 8vendor\fideloper\proxy\src\TrustedProxyServiceProvider.php:37: public function register() 9vendor\filp\whoops\src\Whoops\Run.php:134: public function register() 10vendor\filp\whoops\src\Whoops\RunInterface.php:57: public function register(); 11vendor\fruitcake\laravel-cors\src\CorsServiceProvider.php:17: public function register() 12vendor\laravel\framework\src\Illuminate\Auth\Passwords\PasswordResetServiceProvider.php:15: public function register() 13vendor\laravel\framework\src\Illuminate\Auth\AuthServiceProvider.php:20: public function register() 14vendor\laravel\framework\src\Illuminate\Broadcasting\BroadcastServiceProvider.php:17: public function register() 15vendor\laravel\framework\src\Illuminate\Bus\BusServiceProvider.php:18: public function register() 16vendor\laravel\framework\src\Illuminate\Cache\CacheServiceProvider.php:16: public function register() 17 18vendor\laravel\framework\src\Illuminate\Cookie\CookieServiceProvider.php:14: public function register() 19 20vendor\laravel\framework\src\Illuminate\Database\DatabaseServiceProvider.php:40: public function register() 21vendor\laravel\framework\src\Illuminate\Database\MigrationServiceProvider.php:42: public function register() 22vendor\laravel\framework\src\Illuminate\Encryption\EncryptionServiceProvider.php:17: public function register() 23vendor\laravel\framework\src\Illuminate\Events\EventServiceProvider.php:15: public function register() 24vendor\laravel\framework\src\Illuminate\Filesystem\FilesystemServiceProvider.php:14: public function register() 25 26vendor\laravel\framework\src\Illuminate\Foundation\Providers\ArtisanServiceProvider.php:159: public function register() 27vendor\laravel\framework\src\Illuminate\Foundation\Providers\ComposerServiceProvider.php:16: public function register() 28vendor\laravel\framework\src\Illuminate\Foundation\Providers\FormRequestServiceProvider.php:17: public function register() 29vendor\laravel\framework\src\Illuminate\Foundation\Providers\FoundationServiceProvider.php:40: public function register() 30 31vendor\laravel\framework\src\Illuminate\Foundation\AliasLoader.php:151: public function register() 32 33 34vendor\laravel\framework\src\Illuminate\Hashing\HashServiceProvider.php:15: public function register() 35vendor\laravel\framework\src\Illuminate\Log\LogServiceProvider.php:14: public function register() 36 37vendor\laravel\framework\src\Illuminate\Mail\MailServiceProvider.php:15: public function register() 38vendor\laravel\framework\src\Illuminate\Notifications\NotificationServiceProvider.php:32: public function register() 39vendor\laravel\framework\src\Illuminate\Pagination\PaginationServiceProvider.php:30: public function register() 40vendor\laravel\framework\src\Illuminate\Pipeline\PipelineServiceProvider.php:16: public function register() 41vendor\laravel\framework\src\Illuminate\Queue\QueueServiceProvider.php:29: public function register() 42 43vendor\laravel\framework\src\Illuminate\Redis\RedisServiceProvider.php:16: public function register() 44vendor\laravel\framework\src\Illuminate\Routing\PendingResourceRegistration.php:190: public function register() 45vendor\laravel\framework\src\Illuminate\Routing\ResourceRegistrar.php:73: public function register($name, $controller, array $options = []) 46vendor\laravel\framework\src\Illuminate\Routing\RouteFileRegistrar.php:31: public function register($routes) 47vendor\laravel\framework\src\Illuminate\Routing\RoutingServiceProvider.php:24: public function register() 48vendor\laravel\framework\src\Illuminate\Session\SessionServiceProvider.php:16: public function register() 49vendor\laravel\framework\src\Illuminate\Support\AggregateServiceProvider.php:26: public function register() 50vendor\laravel\framework\src\Illuminate\Support\ServiceProvider.php:51: public function register() 51vendor\laravel\framework\src\Illuminate\Translation\TranslationServiceProvider.php:15: public function register() 52vendor\laravel\framework\src\Illuminate\Validation\ValidationServiceProvider.php:15: public function register() 53vendor\laravel\framework\src\Illuminate\View\Engines\EngineResolver.php:33: public function register($engine, Closure $resolver) 54vendor\laravel\framework\src\Illuminate\View\ViewServiceProvider.php:19: public function register() 55 56vendor\laravel\tinker\src\TinkerServiceProvider.php:36: public function register() 57vendor\laravel\ui\auth-backend\RegistersUsers.php:30: public function register(Request $request) 58vendor\laravel\ui\src\UiServiceProvider.php:15: public function register() 59 60vendor\maatwebsite\excel\src\ExcelServiceProvider.php:38: public function register() 61 62vendor\nesbot\carbon\src\Carbon\Laravel\ServiceProvider.php:61: public function register() 63vendor\nunomaduro\collision\src\Adapters\Laravel\CollisionServiceProvider.php:54: public function register() 64vendor\nunomaduro\collision\src\Contracts\Provider.php:26: public function register(): Provider; 65vendor\nunomaduro\collision\src\Provider.php:52: public function register(): ProviderContract 66 67vendor\phpunit\phpunit\src\Util\ErrorHandler.php:120: public function register(): void 68vendor\sebastian\comparator\src\Factory.php:85: public function register(Comparator $comparator) 69 70vendor\swiftmailer\swiftmailer\lib\classes\Swift\DependencyContainer.php:153: public function register($itemName) 71vendor\weidner\goutte\src\GoutteServiceProvider.php:45: public function register() 72
回答1件
あなたの回答
tips
プレビュー