Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel validation on gropu route

Route::prefix('prefix_name')
    ->where(['prefix_variable' => '[0-9]+'])->group(function () {
        Route::get('get_link', function ($projectType) {
            dd($projectType);
        });
        Route::post('post_link', function ($projectType, $detail) {
            dd($projectType, $detail);
        });
    });
 
PREVIOUS NEXT
Tagged: #laravel #validation #gropu #route
ADD COMMENT
Topic
Name
4+6 =