-
-
Notifications
You must be signed in to change notification settings - Fork 975
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #1972 modules:make generate double separator
- Loading branch information
Showing
4 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...CommandTest__test_it_generates_api_route_file_with_multi_segment_default_namespace__1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
use Illuminate\Support\Facades\Route; | ||
use Custom\Modules\Blog\Http\Controllers\BlogController; | ||
|
||
/* | ||
*-------------------------------------------------------------------------- | ||
* API Routes | ||
*-------------------------------------------------------------------------- | ||
* | ||
* Here is where you can register API routes for your application. These | ||
* routes are loaded by the RouteServiceProvider within a group which | ||
* is assigned the "api" middleware group. Enjoy building your API! | ||
* | ||
*/ | ||
|
||
Route::middleware(['auth:sanctum'])->prefix('v1')->group(function () { | ||
Route::apiResource('blog', BlogController::class)->names('blog'); | ||
}); |
19 changes: 19 additions & 0 deletions
19
...CommandTest__test_it_generates_web_route_file_with_multi_segment_default_namespace__1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
use Illuminate\Support\Facades\Route; | ||
use Custom\Modules\Blog\Http\Controllers\BlogController; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| 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::group([], function () { | ||
Route::resource('blog', BlogController::class)->names('blog'); | ||
}); |