@extends('admin.form_admin') @section('content') <div id="page-wrapper"> <?php use App\Models\Admin; ?> <?php $admin = Admin::all(); ?> <?php echo $admin[0]->username; ?> </div> <!-- /#page-wrapper --> @stop
/** * Display a listing of the resource. * * @return Response */ public function index() { return view('admin.user.index')->withAdmins(Admin::all()); }
public function getAccessToken() { $admin = Admin::all()->first(); return $admin->access_token; }