<?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'));

    }
}