Commit 8ac28aff by martinus

Membuat Controller untuk admin

parent dc613d61
<?php
namespace App\Http\Controllers;
use App\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class AdminController extends Controller
{
//
public function index(){
return view('admin');
}
public function show(){
$user = User::paginate(1);
return view('admin.lihatuser',['user'=>$user]);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment