Initial Commit
The initial public commit of MVGL website code.
This commit is contained in:
commit
b39ecf1638
2043 changed files with 215154 additions and 0 deletions
32
app/Http/Controllers/Logs/SystemLogsController.php
Normal file
32
app/Http/Controllers/Logs/SystemLogsController.php
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Logs;
|
||||
|
||||
use App\DataTables\Logs\SystemLogsDataTable;
|
||||
use App\Http\Controllers\Controller;
|
||||
use Jackiedo\LogReader\LogReader;
|
||||
|
||||
class SystemLogsController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index(SystemLogsDataTable $dataTable)
|
||||
{
|
||||
return $dataTable->render('pages.log.system.index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param int $id
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function destroy($id, LogReader $logReader)
|
||||
{
|
||||
return $logReader->find($id)->delete();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue