ringlesoft / laravel-process-approval

Laravel Process Approval is a Laravel package that makes it easy to add approvals to your Laravel application. It allows you to define approval workflows for any model, and it provides a simple and easy-to-use API/UI for managing approvals.
http://ringlesoft.com/packages/laravel-process-approval
MIT License
157 stars 19 forks source link

About Approval Data #17

Closed Parvez8700 closed 4 months ago

Parvez8700 commented 5 months ago

Dear Team,

I hope this message finds you well. I am currently working on implementing the Laravel Process Approval package in my application. I have successfully created process_approval_flows and process_approval_flow_steps, and I have added the required traits to my model.

However, I am facing an issue with the frontend not displaying any data. However process_approval_statuses table is containg the data created by model. But, I am unable to view any data on the frontend.

Here are some key details about my implementation:

Database Tables:

process_approvals process_approval_flows process_approval_flow_steps process_approval_statuses Implemented Traits:

I have added the necessary traits to my model. Issue:

The frontend is not displaying any data, and the process_approval_statuses table contains data. I have checked the roles i am logged in with the correct role but not data reflecting. I have reviewed the documentation and checked my code, but I am unable to identify the source of the problem. I would appreciate your guidance and assistance in resolving this issue.

If possible, could you provide insights into how the process_approval table is expected to be populated, and any steps or considerations I might be missing in the implementation?

Thank you for your time and assistance. I look forward to hearing from you soon.

Best regards,

Parvez Alam Software Engineer

ringunger commented 4 months ago

Hello @Parvez8700 Thanks for reaching out.

Firstly, I would like to know how you have implemented the code at the front-end (blade). This will give me a clearer picture of what issues you are facing.

The expected implementation is by adding the following to the detailed view (show) of your model.

<x-ringlesoft-approval-actions :model="$modelInstance" />
Parvez8700 commented 4 months ago

Dear David,

I appreciate your consideration. I've successfully resolved the issue, and this package has proven to be fantastic. It has saved me a significant amount of time. Thank you very much.

Regards, Parvez Alam

From: David Ringle @.> Sent: Thursday, February 22, 2024 2:15 AM To: ringlesoft/laravel-process-approval @.> Cc: Parvez Alam @.>; Mention @.> Subject: Re: [ringlesoft/laravel-process-approval] About Approval Data (Issue #17)

Caution! This email originated from outside of the Organization. Do not click on any links or open attachments unless you recognize the sender and know the content is safe.

Hello @Parvez8700https://github.com/Parvez8700 Thanks for reaching out.

Firstly, I would like to know how you have implemented the code at the front-end (blade). This will give me a clearer picture of what issues you are facing.

The expected implementation is by adding the following to the detailed view (show) of your model.

— Reply to this email directly, view it on GitHubhttps://github.com/ringlesoft/laravel-process-approval/issues/17#issuecomment-1957879684, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BF55N5AEXEMGSANKKMWC44LYUZMFHAVCNFSM6AAAAABC3NODCWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJXHA3TSNRYGQ. You are receiving this because you were mentioned.Message ID: @.***>

ringunger commented 4 months ago

Thanks