public function getReset() { $config = Config::getConfig(); if (Auth::check()) { return view('auth.reset', compact('config')); } return Redirect::route('getLogin'); }
/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $config = Config::getConfig(); $article = Article::findOrFail($id); $next_article = $article->getNextArticleId($id); $prev_article = $article->getPrevArticleId($id); $comments = $article->getComments; $tags = $article->getTags; return view('articles.show', compact('article', 'next_article', 'prev_article', 'comments', 'tags', 'config')); }
public function getLogin() { $config = Config::getConfig(); return view('auth.login', compact('config')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $config = Config::getConfig(); return view('home.config', compact('config')); }