<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the controller to call when that URI is requested. | */ use App\Modules\ProductModule\Entities\Product; Route::get('error/{code}', function ($code) { return response('测试', 404); }); Route::get('debug', function () { $seller = \App\Modules\ShopModule\Entities\Shop::first(); dd($seller->products()->with('sale')->toSql()); $product = \App\Modules\ProductModule\Entities\Product::inRandomOrder()->first(); dd($product->toSearchableArray()); return view('debug', ['thing' => $product->toSearchableArray()]); return view('front::auth.emails.password', compact('token', 'user')); }); Route::get('email', function () { Auth::user()->notify(new \App\Modules\AuthenticationModule\Notifications\WelcomeNotification(Auth::user())); return 'sent'; });