[ 'required', 'max:255', ], ]; // Prepare the link data $linkData = [ 'title' => $request->title, 'button_id' => "44", 'link' => $request->link, ]; return ['rules' => $rules, 'linkData' => $linkData]; }