PHP Classes
elePHPant
Icontem

File: src/routes/web.php

Recommend this page to a friend!
  Classes of Zacchaeus Bolaji  >  Laravel Revert Model Events  >  src/routes/web.php  >  Download  
File: src/routes/web.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel Revert Model Events
Log, list and undo changes done on model objects
Author: By
Last change:
Date: 11 days ago
Size: 558 bytes
 

 

Contents

Class file image Download
<?php

/**
 * 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(['namespace' => 'Djunehor\EventRevert', 'middleware' => ['web', 'model-event-logger-middleware']], function () {
   
Route::get('/model-events', 'ModelLogController@index');
   
Route::get('/model-events/{log}', 'ModelLogController@show');
   
Route::patch('/model-event-revert/{id}', 'ModelLogController@revert');
});