App\Http\Controllers\Backend\TopicController::index PHP Method

index() public method

Display a listing of the resource.
public index ( ) : Illuminate\Http\Response
return Illuminate\Http\Response
    public function index()
    {
        $topics = $this->topics->orderBy('id', 'desc')->paginate(10);
        return view('backend.topic.index', compact('topics'));
    }