Inital Commit
This commit is contained in:
25
app/Http/Controllers/BackendController.php
Normal file
25
app/Http/Controllers/BackendController.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Log\ActivityLog;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class BackendController extends Controller
|
||||
{
|
||||
// private $path;
|
||||
// public function __construct(){
|
||||
// $this->path = config("app.client_path");
|
||||
// }
|
||||
|
||||
public function displayBackend(){
|
||||
$methodNames = ['create', 'edit', 'destroy', 'store'];
|
||||
$datas = ActivityLog::whereIn('methodname', $methodNames)
|
||||
->latest()
|
||||
->take(20)
|
||||
->get();
|
||||
|
||||
return view('backend.dashboard',compact('datas'));
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user