Ekapp/skolehjem/app/Http/Controllers/AllowActionController.php

15 lines
312 B
PHP
Raw Normal View History

<?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 ]);
}
}