Linux sg77.dns-private.com 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
LiteSpeed
Server IP : 135.181.230.13 & Your IP : 216.73.217.64
Domains :
Cant Read [ /etc/named.conf ]
User : pilasate
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
pilasate /
pilasa-core /
app /
Http /
Controllers /
Delete
Unzip
Name
Size
Permission
Date
Action
Auth
[ DIR ]
drwxr-xr-x
2024-04-21 07:39
AboutController.php
6.3
KB
-rw-r--r--
2018-10-11 22:20
AdminController.php
547
B
-rw-r--r--
2017-08-23 13:44
AdminManageUserController.php
6.72
KB
-rw-r--r--
2017-08-28 22:04
AdminPostController.php
8.95
KB
-rw-r--r--
2017-09-03 04:35
AdminProfileController.php
3.63
KB
-rw-r--r--
2017-09-13 00:37
BlogController.php
2.06
KB
-rw-r--r--
2017-08-25 15:44
CategoryController.php
4.01
KB
-rw-r--r--
2017-08-25 15:38
CommentsController.php
3.56
KB
-rw-r--r--
2017-09-08 11:38
Controller.php
361
B
-rw-r--r--
2017-07-11 04:08
CustomerController.php
1.48
KB
-rw-r--r--
2017-08-10 01:29
GalleryController.php
4
KB
-rw-r--r--
2017-08-28 15:51
HomeController.php
640
B
-rw-r--r--
2017-08-25 15:31
HostingOrderController.php
3.26
KB
-rw-r--r--
2018-03-28 06:48
LogoController.php
3.5
KB
-rw-r--r--
2018-02-18 04:17
MessagesController.php
2.63
KB
-rw-r--r--
2017-09-18 01:33
PagesController.php
2.92
KB
-rw-r--r--
2018-10-05 00:09
PortfolioController.php
4.97
KB
-rw-r--r--
2017-08-28 17:43
PostController.php
6.48
KB
-rw-r--r--
2018-02-18 04:18
ProfileController.php
4.18
KB
-rw-r--r--
2017-08-27 07:16
ServiceController.php
5.69
KB
-rw-r--r--
2018-10-05 00:06
TagController.php
3.33
KB
-rw-r--r--
2017-08-25 18:01
TeamController.php
4.69
KB
-rw-r--r--
2017-08-28 17:45
VideoController.php
3.16
KB
-rw-r--r--
2017-09-08 23:38
Save
Rename
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Comment; use App\Post; use Session; use Auth; use App\Message; class CommentsController extends Controller { public function __construct(){ $this->middleware('auth:admin',['except'=>'store']); } /** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function index(){ $comments=Comment::all(); $messages=Message::all(); return view('Admin.comments.index')->withComments($comments)->withMessages($messages); } public function store(Request $request,$post_id) { $post= Post::find($post_id); $comment= new Comment(); if (Auth::check()) { $this->validate($request,['comment'=>'required|min:5']); $comment->name=Auth::user()->name; $comment->email=Auth::user()->email; $comment->comment=$request->comment; $comment->approved=true; $comment->post()->associate($post); $comment->save(); Session::flash('success','Comment successfully added'); return redirect()->route('blog.single',[$post->slug]); }else{ $this->validate($request,array( 'name'=>'required|max:255', 'email'=>'required|email|max:255', 'comment'=>'required|min:5|max:2000' )); $comment->name=$request->name; $comment->email=$request->email; $comment->comment=$request->comment; $comment->approved=true; $comment->post()->associate($post); $comment->save(); Session::flash('success','Comment successfully added'); return redirect()->route('blog.single',[$post->slug]); } } /** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { // } public function readmore($id){ $comments=Comment::find($id); return view('comments.readmore')->withComments($comments); } /** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $comment = Comment::find($id); return view('Admin.comments.edit')->withComment($comment); } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param int $id * @return \Illuminate\Http\Response */ public function update(Request $request, $id) { $comment = Comment::find($id); $this->validate($request,array('comment'=>'required')); $comment->comment =$request->comment; $comment->save(); Session::flash('success','Comment updated successfully!'); return redirect()->route('posts.show',$comment->post->id); } public function delete($id){ $comment=Comment::find($id); return view('Admin.comments.delete')->withComment($comment); } /** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $comment = Comment::find($id); $post_id = $comment->post->id; $comment->delete(); Session::flash('success','Comment deleted successfully'); return redirect()->route('comments.index'); } }