PHP code example of zschuessler / model-json-attribute-guard-laravel
1. Go to this page and download the library: Download zschuessler/model-json-attribute-guard-laravel library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zschuessler / model-json-attribute-guard-laravel example snippets
namespace App\Models\User;
use Zschuessler\ModelJsonAttributeGuard\JsonAttributeGuard;
class PreferencesJsonColumn extends JsonAttributeGuard
{
public function schema() : array
{
return [
// Use wildcard syntax to apply rules to all children
'*.name' => '