<?php

namespace App\Http\Controllers;

use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Support\Facades\DB;


class ListServices extends BaseController
{
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests;

    // public function __construct()
    // {
    //     $this->middleware("auth:member");
    // }
    public function index()
    {
        $listservices = DB::table('user_services')->paginate(1);
        // return view('admin.user_services.read', compact('user_services'));
        
        return view('listservices', ['services' => $listservices]);
    }
}
