Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated methodaddColumns() - use fields() #1355

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

luanfreitasdev
Copy link
Collaborator

⚡ PowerGrid - Pull Request

Welcome and thank you for your interest in contributing to our project!. You must use this template to submit a Pull Request or it will not be accepted.


Motivation

  • Bug fix
  • Enhancement
  • New feature
  • Breaking change

Description

This Pull Request adds...

Related Issue(s): #_____.

Documentation

This PR requires Documentation update?

  • Yes
  • No
  • I have already submitted a Documentation pull request.

@luanfreitasdev luanfreitasdev marked this pull request as ready for review January 30, 2024 13:25
@luanfreitasdev luanfreitasdev merged commit b7d1d95 into 5.x Jan 30, 2024
42 checks passed
@luanfreitasdev luanfreitasdev deleted the deprecated-add-columns branch January 30, 2024 13:32
@LeandroAndrade2020
Copy link

I did an installation from scratch with laravel 10.43 and installed livewire 3 and then installed powergrid 5, I've done different installations and always getting this error:

Method PowerComponents\LivewirePowerGrid\PowerGridFields::addColumn does not exist.

And showing that it is in this part of the code:

public function fields(): PowerGridFields

{

return PowerGrid::fields()

    ->addColumn('id')

    ->addColumn('name')

    ->addColumn('email')

    ->addColumn('created_at_formatted', fn (User $model) => Carbon::parse($model->created_at)->format('d/m/Y H:i:s'));

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants