4 months ago

how to multiple column validation in laravel

Posted 4 months ago by Van1310

i have table which name job and field name like .. id, name, city, job

i want to city wise job add and also not duplicate job add in current city

how can i fix it please help me guys thanks

controller file

public function addjob_store(Request $request)
        $job=new Job(array(
        'city' => $request->get('city'),
        'name' => $request->get('name'),
        'job' => $request->get('job'),

Please sign in or create an account to participate in this conversation.