-
Hello, First of all, congratulations for this streaming service project, it's really great! I chose to use it for one of my projects, however I need to add a basic user-side registration system to it. I've searched a lot into threads but it doesn't seem to be on the agenda. I would like to work on it by myself (I have basic knowledge of PHP and some of its frameworks like Symfony). Does anyone have any feedback to share about this feature or advice for me to work on it? I have the feeling that it's interest quite a few Koel users :-) Thank you in advance and wish you a good day! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Pretty simple actually ! Just have to create a new route : `Route::post('/register', function () { });` A new vue :
Quite basic, but It's working 😄 |
Beta Was this translation helpful? Give feedback.
Pretty simple actually ! Just have to create a new route :
`Route::post('/register', function () {
$utilisateur = new App\Models\User;
$utilisateur->name = request('name');
$utilisateur->email = request('email');
$utilisateur->password = bcrypt(request('password'));;
$utilisateur->save();
});`
A new vue :
<form action="/register" method="post"> {{ csrf_field() }} <input type="text" name="name" placeholder="Name"> <input type="email" name="email" placeholder="Email"> <input type="password" name="password" placeholder="Mot de passe"> <input type="password" name="password_confirmation" placeholder="Mot de passe (confirmation)"> <input type="submit" value="M'inscrire"> </form>
Quite basic, bu…