Example #1
0
 public function __construct()
 {
     //父类没有构造函数
     $this->initUser();
     $this->viewData('nag', Nag::getInstance()->getOne());
 }
Example #2
0
 /**
  * Display a listing of users
  * @param Request $request
  * @return Response
  */
 public function index(Request $request)
 {
     $nagging = Nag::getInstance()->findAll();
     return view('backend.nagging.index', compact('nagging'));
 }