bagisto / bagisto-package-generator

Bagisto Package Generator
MIT License
38 stars 14 forks source link

Admin And Shop Route Should Be Plain Also #13

Closed devansh-webkul closed 8 months ago

devansh-webkul commented 4 years ago

Bug When I am manually setting up a package by using the plain command. I am using the make-admin-route and make-shop-route. It gives me the by default routes which are redirecting to some controller which does not even exist.

For plain packages, we need to give the plain commands as well.

Current Result: This is because I am using normal command right now.

Route::group(['middleware' => ['web', 'admin']], function () {

    Route::get('/admin/helloworld', 'ACME\HelloWorld\Http\Controllers\Admin\HelloWorldController@index')->defaults('_config', [
        'view' => 'helloworld::admin.index',
    ])->name('helloworld.admin.index');

});

Expected Result: When we may use the plain feature.

Route::group(['middleware' => ['web', 'admin']], function () {
   // just a plain and simple template without any route
});