Support the ongoing development of Laravel.io →
Input Forms Validation
Last updated 1 year ago.
0

your controller code?

0

Here it is

public function store(CreateAdmin $request)
    {

        $admin = new Admin;
        $admin->name = $request->name;
        $admin->member_no = '1';
        $admin->active = 'Y';
        $admin->password = Hash::make($request->pin);
        $admin->void_code = $request->void_code;
        $admin->save();
        $za_id = $admin->id;
        $update = Admin::findOrFail($za_id);
        $update->member_no = 'ZA' . $za_id;
        $update->save();
        return redirect('admin');
    }
0

Anybody?

0

This solved my problem:

'password' => 'required|between:6,8',

llagerlof liked this reply

1

Sign in to participate in this thread!

Eventy

Your banner here too?

AtomicRSA atomicrsa Joined 24 Jun 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.