public function __construct() { //父类没有构造函数 $this->initUser(); $this->viewData('nag', Nag::getInstance()->getOne()); }
/** * 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')); }