Skip to content

Instantly share code, notes, and snippets.

@rajeshtva
Created December 25, 2020 18:31
Show Gist options
  • Save rajeshtva/edad67ec4d6b6cd4433bf686efc44cfb to your computer and use it in GitHub Desktop.
Save rajeshtva/edad67ec4d6b6cd4433bf686efc44cfb to your computer and use it in GitHub Desktop.
web.php file for video length validation
<?php
use App\Http\Controllers\VideoValidationController;
use App\Jobs\HelloUserMailJob;
use App\Mail\HelloUserMail;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Request;
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');
});
Auth::routes();
Route::get('/video-upload', [VideoValidationController::class, 'get_form'])->name('video-upload');
Route::post('/video-length-validate', [VideoValidationController::class, 'validate_length'])->name("video-length-validation");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment