title: how to insert data into a loyalty card and save as jpg or png format in php
body: <p>Suppose I have some loyalty card samples(like <code>.jpg</code> or <code>.png</code> format) in my Laravel website.</p>
  <p><a href="https://i.stack.imgur.com/COQ8U.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/COQ8U.jpg" alt="Loyalty Card Sample" /></a></p>
  <p>To achieve any loyalty card, user need to fill up some info field like <code>username</code>, <code>mobile number</code>, <code>email</code>. After filing the information user choose any loyalty card sample and click submit.
  Then an unique number generate and a new loyalty card will be shown with all user information(in <code>.jpg</code> or <code>.png</code> format) that he given.</p>
  <p>So my question is How can I save data upon a <code>.jpg</code> or <code>.png</code> image using PHP or Laravel?</p>
  <p>Anybody can help please ? Thanks in advance.</p>