|
|
@ -1,6 +1,7 @@ |
|
|
<?php |
|
|
<?php |
|
|
|
|
|
|
|
|
use App\Jobs\LongRunJob; |
|
|
use App\Jobs\LongRunJob; |
|
|
|
|
|
use App\Jobs\LongRunPrivateJob; |
|
|
use Illuminate\Support\Facades\Route; |
|
|
use Illuminate\Support\Facades\Route; |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
@ -29,6 +30,13 @@ Route::get('/long-run-job', function () { |
|
|
return redirect()->home(); |
|
|
return redirect()->home(); |
|
|
})->name('long-run-job'); |
|
|
})->name('long-run-job'); |
|
|
|
|
|
|
|
|
|
|
|
Route::get('/private-long-run-job', function () { |
|
|
|
|
|
dispatch(new LongRunPrivateJob(auth()->id())); |
|
|
|
|
|
|
|
|
|
|
|
flash('Please wait, your request is processing...'); |
|
|
|
|
|
return redirect()->home(); |
|
|
|
|
|
})->name('private-long-run-job'); |
|
|
|
|
|
|
|
|
Auth::routes(); |
|
|
Auth::routes(); |
|
|
|
|
|
|
|
|
Route::get('/home', 'HomeController@index')->name('home'); |
|
|
Route::get('/home', 'HomeController@index')->name('home'); |