/**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     //
     $catArr = Category::getCatFieldData();
     unset($catArr[0]);
     return backendView('edit', ['article' => Article::find($id), 'catArr' => $catArr]);
 }
 /**
  * Display the specified resource.
  *
  * @param  int $id
  * @return Response
  */
 public function show($id)
 {
     //
     $commentInfo = Comment::find($id);
     if (empty($commentInfo)) {
         Notification::error('查看的评论已被删除');
         return redirect()->back();
     }
     return backendView('show', ['commentInfo' => $commentInfo]);
 }
Example #3
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return Response
  */
 public function edit($id)
 {
     //
     return backendView('edit', array('user' => User::find($id)));
 }
Example #4
0
 public function getCreate()
 {
     return backendView('create');
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return Response
  */
 public function edit($id)
 {
     //
     return backendView('edit')->withCate(Category::find($id));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return Response
  */
 public function edit($id)
 {
     //
     return backendView('edit', ['tag' => Tag::find($id)]);
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return Response
  */
 public function edit($id)
 {
     //
     return backendView('edit', ['nav' => Navigation::find($id)]);
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     //
     return backendView('edit', ['link' => Links::find($id)]);
 }
Example #9
0
 public function getView($id)
 {
     $member = Member::find($id);
     $member->cardnourl = explode(";", $member->cardnourl);
     if ($member->type == 1) {
         //律师
         return backendView('authe.approved.approvelayer')->withMember($member);
     } else {
         if ($member->type == 2) {
             //企业
             return backendView('authe.approved.approvecompany')->withMember($member);
         } else {
             if ($member->type == 3) {
                 //个人
                 return backendView('authe.approved.approveperson')->withMember($member);
             } else {
                 //个人
                 return backendView('authe.noapprove.member')->withMember($member);
             }
         }
     }
 }