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

Error opening or editing and deleting a post comment. #49

Open
lordjack opened this issue Jan 12, 2019 · 0 comments
Open

Error opening or editing and deleting a post comment. #49

lordjack opened this issue Jan 12, 2019 · 0 comments

Comments

@lordjack
Copy link

lordjack commented Jan 12, 2019

Hi

I'm wanting to pass an id to another page by filtering according to the passed ID Ex:

area - Main table
id
name
type_id

area_type - secondary table
id
area_id
name

I'm looking for an example, when clicking on an "area" action I can pass the area id and filter "area_type" from this filter. The example I found closest in the demo was the Post and comment.

when opening a post in the demo example through the link below. When you click on any view action, edit or delete the comment, it presents an error, does not open the form nor excludes.
https://demo.laravel-admin.org/posts/1/edit

this error.
https://demo.laravel-admin.org/demo/post-comments/38

I accessed the post controller, but I did not identify the error.
https://github.com/z-song/demo.laravel-admin.org/blob/master/app/Admin/Controllers/PostController.php

Anyone have any tips, thanks?

Area grid - PostController

$grid->actions(function (Grid\Displayers\Actions $actions) { $actions->append('<a href="area-categoria/'.$actions->getKey().'"><i class="fa fa-paper-plane"></i></a>'); });

Area type grid - PostCommentController

$grid->filter(function ($filter) { $filter->like('content'); });

@lordjack lordjack changed the title Error open or edit post comment Error opening or editing and deleting a post comment. Jan 12, 2019
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

No branches or pull requests

1 participant