TanchoToplineCargo/app/Http/Controllers/BackendController.php
2024-05-05 10:32:49 +05:45

26 lines
628 B
PHP

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