App\Http\Controllers\Backend\TopicController::index PHP Метод

index() публичный Метод

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