logo

Route

You can generate a route by following command.

bash
php artisan next:route blog v1 --api

INFO

Generated route will be at routes/api/v1/blog.php

Arguments

  • route : name of the generated route file
  • versionOrDirectory (optional) : version of the route or directory where the route file will be generated

Options

Calling A Controller Action

php
Route::group(['prefix' => '/v1/blogs'], function() {
    Route::post('/', [BlogController::class, 'store']);
});