app/Http/Controllers/__Admin__/_AuditController.php
/**
	 * Display a listing of the resource.
	 *
	 * @return \Illuminate\Http\Response
	 */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
	{
		if(!checkACL('manager')) {
			Log::warning(Auth::user()->username . " (" . Auth::user()->id . ") tried to access :: Admin / Audits");
			return view('errors.403');
		}
		Log::info(Auth::user()->username . " (" . Auth::user()->id . ") accessed :: Admin / Audits");
		$audits = Audit::orderBy('id','desc')->with('user')->get();
		return view('admin.audits.index', compact('audits'));
	}
public function index ( ) { if ( ! checkACL ( 'manager' ) ) { Log :: warning ( Auth :: user ( ) -> username . "  ( " . Auth :: user ( ) -> id . " ) tried to access :: Admin / Audits " ) ; return view ( 'errors.403' ) ; } Log :: info ( Auth :: user ( ) -> username . "  ( " . Auth :: user ( ) -> id . " ) accessed :: Admin / Audits " ) ; $ audits = Audit :: orderBy ( 'id' , 'desc' ) -> with ( 'user' ) -> get ( ) ; return view ( 'admin.audits.index' , compact ( 'audits' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
// Save entry to log file of failure // Save entry to log file using built-in Monolog