PHP Classes

File: src/stubs/cms/core/usergroup/adminroutes.php

Recommend this page to a friend!
  Classes of Shun Ram   Laravel Admin   src/stubs/cms/core/usergroup/adminroutes.php   Download  
File: src/stubs/cms/core/usergroup/adminroutes.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Laravel Admin
Manage users and the site content they publish
Author: By
Last change:
Date: 1 year ago
Size: 520 bytes
 

Contents

Class file image Download
<?php

use Illuminate\Support\Facades\Route;

Route::group(['prefix' => 'usergroups'], function () {
   
Route::get('/', function () {
        return
redirect()->route('usergroup.index');
    });
   
//get users list
   
Route::post('data', 'UserGroupController@getData')->name('get_user_group_data_from_admin');

   
//bulk option
   
Route::post('action/{action}', 'UserGroupController@statusChange')->name('user_group_action_from_admin');

   
Route::resource('usergroup', 'UserGroupController');
});