This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//source https://gridsome.org/docs/taxonomies | |
api.loadSource(store => { | |
const posts = store.addContentType('Post') | |
const tags = store.addContentType('Tag') | |
// makes all ids in the `tags` field reference a `Tag` | |
posts.addReference('tags', 'Tag') | |
tags.addNode({ | |
id: '1', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//app/Models/Page.php | |
<?php | |
namespace App\Models; | |
use A17\Twill\Models\Behaviors\HasBlocks; | |
use A17\Twill\Models\Behaviors\HasSlug; | |
use A17\Twill\Models\Behaviors\HasMedias; | |
use A17\Twill\Models\Behaviors\HasRevisions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Repositories; | |
use A17\Twill\Repositories\Behaviors\HandleBlocks; | |
use A17\Twill\Repositories\Behaviors\HandleSlugs; | |
use A17\Twill\Repositories\ModuleRepository; | |
use App\Models\Client; | |
use A17\Twill\Repositories\BlockRepository; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// thanks johnny for this awesome package <3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
'block_editor' => [ | |
'blocks' => [ | |
'text' => [ | |
'title' => 'Body text 1', | |
'icon' => 'text', | |
'component' => 'a17-block-wysiwyg', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Reference: https://docs.microfocus.com/SM/9.60/Codeless/Content/programming/system_language/reference/rad_function_mandant.htm | |
* with type 2, we're using the defintion from scsecuritygroup | |
* This defintion is the base for the "security groups" in the operator file | |
*/ | |
//set mandant to ADMIN, which is our global mandant see all records | |
var rcRad = system.functions.mandant(2, ["ADMIN"]) | |
var file = new SCFile("probsummary"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace Rinvex\Fort\Handlers; | |
use Illuminate\Http\Request; | |
use Illuminate\Auth\Events\Lockout; | |
use Illuminate\Contracts\Events\Dispatcher; | |
use Illuminate\Contracts\Container\Container; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* NOTICE OF LICENSE | |
* | |
* Part of the Rinvex Fort Package. | |
* | |
* This source file is subject to The MIT License (MIT) | |
* that is bundled with this package in the LICENSE file. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function update(LessonCrudRequest $request) | |
{ | |
$this->crud->hasAccessOrFail('update'); | |
// replace empty values with NULL, so that it will work with MySQL strict mode on | |
foreach ($request->input() as $key => $value) { | |
if (empty($value) && $value !== '0') { | |
$request->request->set($key, null); | |
} | |
} |