title: Use Same Form Request But Pass Unique Code to The Form Request
body: <p>I'm implementing a new way to writing Form Request rules and messages where I :</p>
  
  <ul>
  <li>Have an activity (e.g. adding a user)</li>
  <li>Attach a unique code to each activity (e.g. add_user)</li>
  <li>Write the rules</li>
  <li>Write the Messages on the rules</li>
  </ul>
  
  <p>All this is done over a user interface, and the activities, rules and messages are stored in the DB and fetched as needed:</p>
  
  <ul>
  <li>Create Form Request</li>
  <li>Fetch rules and messages by passing the activity's unique code
  <a href="https://i.stack.imgur.com/Xvgxj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xvgxj.png" alt="enter image description here"></a>
  <p></li>
  </ul>
  
  <p>This therefore means that all my form requests shall be exactly the same, with the only difference being the code used to fetch the rules and messages. This therefore makes it cumbersome to have to create and import the Form Request every time.</p>
  
  <p>And it made me to wonder, is there a way probably I can use the same Form Request and probably automatically pass to it the code when injecting it in the controller.</p>
  
  <p>Any ideas? </p>