use App\Helpers\ViewHelper;
use Illuminate\Http\Request;
use App\Helpers\ContextLaraKnife;
+use Illuminate\Routing\ViewController;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Validator;
} else {
$fields = $request->all();
if (count($fields) === 0) {
+ ViewHelper::adaptCheckbox($fields, 'transitive');
$word = Word::find($verb->word_id);
$phrase = DB::select('select id, phrase from phrases where word_id=? and language_scope=1201', [$word->id])[0];
$fields = [
'noun' => $word->word,
'word_id' => $verb->word_id,
'phrase_id' => $phrase->id,
+ 'usage' => $phrase->phrase
];
}
$context = new ContextLaraKnife($request, $fields, $verb);
$rc = null;
if ($request->btnSubmit === 'btnStore') {
$fields = $request->all();
+ ViewHelper::adaptCheckbox($fields, 'transitive');
$validator = Validator::make($fields, $this->rules(false));
if ($validator->fails()) {
$errors = $validator->errors();
},
{
"name": "nesbot/carbon",
- "version": "3.2.3",
+ "version": "3.2.4",
"source": {
"type": "git",
"url": "https://github.com/briannesbitt/Carbon.git",
- "reference": "4d599a6e2351d6b6bf21737accdfe1a4ce3fdbb1"
+ "reference": "82c28278c1c8f7b82dcdab25692237f052ffc8d8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/4d599a6e2351d6b6bf21737accdfe1a4ce3fdbb1",
- "reference": "4d599a6e2351d6b6bf21737accdfe1a4ce3fdbb1",
+ "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/82c28278c1c8f7b82dcdab25692237f052ffc8d8",
+ "reference": "82c28278c1c8f7b82dcdab25692237f052ffc8d8",
"shasum": ""
},
"require": {
"type": "tidelift"
}
],
- "time": "2024-03-30T18:22:00+00:00"
+ "time": "2024-04-05T09:58:10+00:00"
},
{
"name": "nette/schema",
},
{
"name": "phpunit/phpunit",
- "version": "10.5.16",
+ "version": "10.5.17",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "18f8d4a5f52b61fdd9370aaae3167daa0eeb69cd"
+ "reference": "c1f736a473d21957ead7e94fcc029f571895abf5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/18f8d4a5f52b61fdd9370aaae3167daa0eeb69cd",
- "reference": "18f8d4a5f52b61fdd9370aaae3167daa0eeb69cd",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c1f736a473d21957ead7e94fcc029f571895abf5",
+ "reference": "c1f736a473d21957ead7e94fcc029f571895abf5",
"shasum": ""
},
"require": {
"support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
- "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.16"
+ "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.17"
},
"funding": [
{
"type": "tidelift"
}
],
- "time": "2024-03-28T10:08:10+00:00"
+ "time": "2024-04-05T04:39:01+00:00"
},
{
"name": "sebastian/cli-parser",