Hourlee
145
2
Vue

Storing array value from vue

Posted 11 months ago by Hourlee

I want to store array value from a form in vue by using controller. I am using loop v-for in my form, and I want to get all the values from there. Please help.

            $project->project_name = $request->projectName;
            $project->customer_id = $request->customerName;
            $project->start_date = date("Y-m-d", strtotime($request->start_date));
            $project->end_date = date("Y-m-d", strtotime($request->end_date));
            $project->description = $request->description;
            $project->file_name = $request->file;
            $projects->features = $request->get('row.features');
            $projects->prices = $request->prices;
            $project->created_by = Auth::user()->id;

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.