use App\Comment;
use App\Discussion;
use App\Group;
use Illuminate\Http\Request;
class CommentController extends Controller
{
public function destroyConfirm(Request $request, Group $group, Discussion $discussion, Comment $comment)
{
$this->authorize('delete', $comment);
return view('comments.delete')
->with('discussion', $discussion)
->with('group', $group)
->with('comment', $comment)
->with('tab', 'discussion');
}
public function history(Request $request, Group $group, Discussion $discussion, Comment $comment)
{
$this->authorize('history', $comment);
return view('comments.history')
->with('group', $group)
->with('discussion', $discussion)
->with('comment', $comment)
->with('tab', 'discussion');
}
}