コード例 #1
0
 public function getReset()
 {
     $config = Config::getConfig();
     if (Auth::check()) {
         return view('auth.reset', compact('config'));
     }
     return Redirect::route('getLogin');
 }
コード例 #2
0
 /**
  * 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'));
 }
コード例 #3
0
 public function getLogin()
 {
     $config = Config::getConfig();
     return view('auth.login', compact('config'));
 }
コード例 #4
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $config = Config::getConfig();
     return view('home.config', compact('config'));
 }