-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
How to use Slug #10
Comments
That's not a correct One way to achieve this would be to have a query string like this
Then in your return Ticket::where('project_id', request()->query('id'))->get(); Also, the error that you're getting is because you're not returning the correct format from your |
Okay what about the error i am reciving |
|
@abbasmashaddy72 did you ever figure this out? I'm running into both the same issues as you. First, I can't route to a project because Second, I'm running into the same issue with statuses override requiring an array but the method insists on a |
@ryanmortier, for the statuses method, you would just need to collect the array and map it to return the expected format. for the routing issue, please create a new issue and tell me more about your ideal api, and i will consider it for v3. |
What I want to achieve?
I have Tickets in My Project which has status I would Like to use
public static ?string $slug = 'kanban/{project}';
So that I can identify the for which Project the user is seeing the Kanban I get the all the tickets for it?
I have These Models:
Status: HasMany tickets | BelongsTo projects
Ticket: BelongsTo status | BelongsTo projects
Project: HasMany tickets
How can I achieve this?
I'm also trying to achieve this by following your video:
Kanban Page:
Error:
Package Version
3.0
PHP Version
PHP 8.2
Laravel Version
v10.10
The text was updated successfully, but these errors were encountered: