PHP Classes

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

Recommend this page to a friend!
  Classes of Shun Ram   Laravel Admin   src/stubs/cms/core/page/adminroutes.php   Download  
File: src/stubs/cms/core/page/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: 478 bytes
 

Contents

Class file image Download
<?php

use Illuminate\Support\Facades\Route;

Route::group(['prefix' => 'pages'], function () {
   
Route::get('/', function () {
        return
redirect()->route('page.index');
    });
   
//get users list
   
Route::post('data', 'PageController@getData')->name('get_page_data_from_admin');

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

   
Route::resource('page', 'PageController');
});