PHP Classes

File: src/Core/Commands/stubs/module/routes/web.php

Recommend this page to a friend!
  Classes of Moamen Eltouny   Laravel Module Generator   src/Core/Commands/stubs/module/routes/web.php   Download  
File: src/Core/Commands/stubs/module/routes/web.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Laravel Module Generator
Generate code for modules for Laravel applications
Author: By
Last change:
Date: 2 years ago
Size: 525 bytes
 

Contents

Class file image Download
<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes [{{ module-name }}]
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your module. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::name('home')->get('/', function () {
    return
'{{ module-slug }}';
});