Izveidot aplikāciju, kura ik pēc noteikta intervāla (60 sekundes) veic ierakstu datubāzē izmantojot Laravel freimworka iebūvēto funkcionalitāti.
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| 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::get('/', function () {
return view('welcome');
});
Route::get('public', function () {
return view('welcome');
});
Route::get('ping-system', 'ActivityMonitorController@PingSystem');
Route::get('monitoring-on', 'ActivityMonitorController@MonitoringOn');
Route::get('monitoring-off', 'ActivityMonitorController@MonitoringOff');
Route::get('write-event', 'EventLogController@WriteEvent');
Route::get('events', 'EventLogController@GetItems');