id" to find out what number the it contains. */ $action = AllowAction::find($request->id); /*Call the Laravel "update" function to update number in the database If the allow column in the database is equal to 1 there is open for registration If the allow column is equal to 0 there is closed for registration */ $action->update([ 'allow' => $request->allow ]); } }