web.php 967 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. use App\Http\Controllers\IndexController;
  4. use App\Events\MessageButton;
  5. /*
  6. |--------------------------------------------------------------------------
  7. | Web Routes
  8. |--------------------------------------------------------------------------
  9. |
  10. | Here is where you can register web routes for your application. These
  11. | routes are loaded by the RouteServiceProvider within a group which
  12. | contains the "web" middleware group. Now create something great!
  13. |
  14. */
  15. Auth::routes();
  16. Route::get('/', [App\Http\Controllers\HomeController::class, 'index'])->middleware('auth');
  17. Route::get('/controllers', [ IndexController::class, 'show' ]);
  18. Route::get('/models', [ IndexController::class, 'db' ]);
  19. Route::get('/forms', [ IndexController::class, 'form' ]);
  20. Route::post('/forms', [ IndexController::class, 'form_send' ]);
  21. // Route::get('event', function(){
  22. // event(new MessageButton(""));
  23. // return redirect('/');
  24. // });