<?php

namespace App\Http\Controllers;
use App\Http\Requests\ClientPolicy\StoreRequest;
use App\Models\ClientPolicy;
use Illuminate\Http\Request;

class ClientPolicyController extends Controller
{
    public function store(StoreRequest $request)
    {      
        Clientpolicy::create([
            'client_id' => $request->client_id,
            'policy_id' => $request->policy_id,
            'state_policy_id' =>$request->state_policy_id,
        ]);
        session(["info"=>"AuthorizeProtocol"]);
        return back()->with(['message' => 'Política aceptada correctamente']);
        //
    }


    //
}
