-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add Button::make()->attach('User') navigation #12
Comments
I see you already have a branch going for this, but just thought I'd add this in case it is useful. I needed this functionality, so implemented a quick fix.
|
@klepak ah thanks! Yeah I was trying to work it out so the resource the field was within was already associated and we only would declare the relation. But I also like the fact that your approach can be used anywhere. |
@dillingham I think both approaches are valuable. In my case I wanted to add a link to edit the relationship between resource B and C from the details page of resource A. Depends on how customizable you need it I guess. Maybe try to auto-detect if no explicit parameters are provided? |
Would be fine at least have a possibility to pass query string: public function route($name, $params, $query = [])
{
$this->type = 'route';
$this->route = [
'name' => $name,
'params' => $params,
'query' => $query,
];
return $this;
} Currently it's impossible to pass query params... |
It would be handy to add attach() like create and edit etc
The text was updated successfully, but these errors were encountered: