how to multiple column validation in laravel

Posted 1 month 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.

Reply to

Use Markdown with GitHub-flavored code blocks.