Add apply button to laravel 5.4 [closed]

2019-09-21 01:38发布

问题:

I'm working on job engine project at the moment of this project I need to add button to ads for apply the vacancy by users and I need to this apply button send user data to the publisher company. for more understanding i give an example:

  1. company will publish ads
  2. user click on apply button in that ad
  3. the button will get info from user profile and send it to company dashboard includes name,email,about, etc. but the most important is to send user CV's link to download by the company.

my question is: who can I approach that idea? currently I'm out of idea how to do that, i need to know what functions I have to use to make this happen?

thanks.

回答1:

ok i will give you the steps hoping that all the data of a student is saved in the database

  1. the user should be logged in
  2. get the id of the logged in user on click on apply button, like a form where it will call a controller function where you will retrieve the id of the authenticated user.
  3. in that function query the database table of user and select all information
  4. wrap them and send an email or a message to the particular company.

hope it helps