How to add dynamic dropdown list column on Laravel 5.3 registration?

后端 未结 2 1294
野的像风
野的像风 2020-11-29 13:13

I want to create a dropdown list where the data retrieved from the database, ie dropdown level. the value of the dropdown level is taken from the table level.

My re

2条回答
  •  清歌不尽
    2020-11-29 13:28

    If I understood you correctly, you need to override showRegistrationForm() method. So, copy-paste this method from vendor to RegisterController and work with it there:

    public function showRegistrationForm()
    {
        // Do something here.
    
        return view('auth.register');
    }
    

    Also, do not make any changes in vendor directory.

提交回复
热议问题