What is your exact question? dd() function call will stop the execution and this wouldn't work as desired. In addition it looks like you should wrap this into a transaction to roll back if anything fails.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community