<?php

namespace App\Http\Controllers;

use App\AllowAction;
use Illuminate\Http\Request;

class AllowActionController extends Controller
{
    function AllowActionRegistering(Request $request) {
        $action = AllowAction::find($request->id);
        $action->update([ 'allow' => $request->allow ]);
    }
}