You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
865 B
34 lines
865 B
<?php
|
|
|
|
use App\Jobs\LongRunJob;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
*/
|
|
|
|
Route::get('/', function () {
|
|
return view('welcome');
|
|
});
|
|
|
|
Route::get('/about', function () {
|
|
return view('about');
|
|
})->name('about');
|
|
|
|
Route::get('/long-run-job', function () {
|
|
dispatch(new LongRunJob());
|
|
|
|
flash('Please wait, your request is processing...');
|
|
return redirect()->home();
|
|
})->name('long-run-job');
|
|
|
|
Auth::routes();
|
|
|
|
Route::get('/home', 'HomeController@index')->name('home');
|