[{"data":1,"prerenderedAt":484},["ShallowReactive",2],{"navigation_docs":3,"-libraries-deprecated-eloquent-encryptable":275,"-libraries-deprecated-eloquent-encryptable-surround":479},[4,48,89],{"title":5,"path":6,"stem":7,"children":8,"icon":47},"Systems & Solutions","\u002Fsystems","1.systems\u002F0.index",[9,11,29],{"title":10,"path":6,"stem":7},"Overview",{"title":12,"path":13,"stem":14,"children":15},"Serverless Satis","\u002Fsystems\u002Fserverless-satis","1.systems\u002Fserverless-satis\u002F0.index",[16,17,21,25],{"title":10,"path":13,"stem":14},{"title":18,"path":19,"stem":20},"CLI generator","\u002Fsystems\u002Fserverless-satis\u002Fs3-satis","1.systems\u002Fserverless-satis\u002F1.s3-satis",{"title":22,"path":23,"stem":24},"GitHub Action","\u002Fsystems\u002Fserverless-satis\u002Fs3-satis-github-action","1.systems\u002Fserverless-satis\u002F2.s3-satis-github-action",{"title":26,"path":27,"stem":28},"CloudFlare Worker","\u002Fsystems\u002Fserverless-satis\u002Fcloudflare-worker","1.systems\u002Fserverless-satis\u002F3.cloudflare-worker",{"title":30,"path":31,"stem":32,"children":33},"WebPrint","\u002Fsystems\u002Fwebprint","1.systems\u002Fwebprint\u002F0.index",[34,35,39,43],{"title":10,"path":31,"stem":32},{"title":36,"path":37,"stem":38},"Server","\u002Fsystems\u002Fwebprint\u002Fserver","1.systems\u002Fwebprint\u002F1.server",{"title":40,"path":41,"stem":42},"Host Service","\u002Fsystems\u002Fwebprint\u002Fservice","1.systems\u002Fwebprint\u002F2.service",{"title":44,"path":45,"stem":46},"API","\u002Fsystems\u002Fwebprint\u002Fapi","1.systems\u002Fwebprint\u002F3.api","mdi:monitor",{"title":49,"path":50,"stem":51,"children":52,"icon":88},"Apps & Tools","\u002Fapps","2.apps\u002F0.index",[53,54,58,62,66,70],{"title":10,"path":50,"stem":51},{"title":55,"path":56,"stem":57},"File Hasher.NET","\u002Fapps\u002Ffile-hasher","2.apps\u002F1.file-hasher",{"title":59,"path":60,"stem":61},"GitFlow Tool","\u002Fapps\u002Fgit-flow","2.apps\u002F1.git-flow",{"title":63,"path":64,"stem":65},"PDF Scan Splitter","\u002Fapps\u002Fpdf-scan-splitter","2.apps\u002F1.pdf-scan-splitter",{"title":67,"path":68,"stem":69},"USB Scale Counter","\u002Fapps\u002Fusb-scale-counter","2.apps\u002F1.usb-scale-counter",{"title":71,"path":72,"stem":73,"children":74,"page":87},"Deprecated","\u002Fapps\u002Fdeprecated","2.apps\u002F9.deprecated",[75,79,83],{"title":76,"path":77,"stem":78},"Batch Comparator","\u002Fapps\u002Fdeprecated\u002Fcomparator","2.apps\u002F9.deprecated\u002Fcomparator",{"title":80,"path":81,"stem":82},"ContactBridge","\u002Fapps\u002Fdeprecated\u002Fcontact-bridge","2.apps\u002F9.deprecated\u002Fcontact-bridge",{"title":84,"path":85,"stem":86},"File Hasher.PY","\u002Fapps\u002Fdeprecated\u002Ffile-hasher-python","2.apps\u002F9.deprecated\u002Ffile-hasher-python",false,"teenyicons:terminal-outline",{"title":90,"path":91,"stem":92,"children":93,"icon":274},"Libraries & Packages","\u002Flibraries","3.libraries\u002F0.index",[94,95,152,193,206,218],{"title":10,"path":91,"stem":92},{"title":96,"path":97,"stem":98,"children":99,"page":87},"PHP & Laravel","\u002Flibraries\u002Fphp","3.libraries\u002F100.php",[100,104,108,112,116,120,124,128,132,136,140,144,148],{"title":101,"path":102,"stem":103},"Binary Tools","\u002Flibraries\u002Fphp\u002Fbinary-tools","3.libraries\u002F100.php\u002Fbinary-tools",{"title":105,"path":106,"stem":107},"Certificate Chain","\u002Flibraries\u002Fphp\u002Fcert-chain","3.libraries\u002F100.php\u002Fcert-chain",{"title":109,"path":110,"stem":111},"Eloquent Sluggable","\u002Flibraries\u002Fphp\u002Feloquent-sluggable","3.libraries\u002F100.php\u002Feloquent-sluggable",{"title":113,"path":114,"stem":115},"Eloquent Tokenable","\u002Flibraries\u002Fphp\u002Feloquent-tokenable","3.libraries\u002F100.php\u002Feloquent-tokenable",{"title":117,"path":118,"stem":119},"Eloquent ULID-able","\u002Flibraries\u002Fphp\u002Feloquent-ulidable","3.libraries\u002F100.php\u002Feloquent-ulidable",{"title":121,"path":122,"stem":123},"Eloquent UUID-able","\u002Flibraries\u002Fphp\u002Feloquent-uuidable","3.libraries\u002F100.php\u002Feloquent-uuidable",{"title":125,"path":126,"stem":127},"emSzmal Banking API wrapper","\u002Flibraries\u002Fphp\u002Femszmal","3.libraries\u002F100.php\u002Femszmal",{"title":129,"path":130,"stem":131},"EPC Tag Data Standard","\u002Flibraries\u002Fphp\u002Fepc-tds","3.libraries\u002F100.php\u002Fepc-tds",{"title":133,"path":134,"stem":135},"File Hasher.PHP","\u002Flibraries\u002Fphp\u002Ffile-hasher","3.libraries\u002F100.php\u002Ffile-hasher",{"title":137,"path":138,"stem":139},"Content Negotiable Responses for Laravel","\u002Flibraries\u002Fphp\u002Flaravel-content-negotiable-responses","3.libraries\u002F100.php\u002Flaravel-content-negotiable-responses",{"title":141,"path":142,"stem":143},"LPD Client and Server","\u002Flibraries\u002Fphp\u002Flpd","3.libraries\u002F100.php\u002Flpd",{"title":145,"path":146,"stem":147},"Partial Key Verification Library for PHP","\u002Flibraries\u002Fphp\u002Fpartial-key-verification","3.libraries\u002F100.php\u002Fpartial-key-verification",{"title":149,"path":150,"stem":151},"WebPrint.PHP","\u002Flibraries\u002Fphp\u002Fwebprint","3.libraries\u002F100.php\u002Fwebprint",{"title":153,"path":154,"stem":155,"children":156,"page":87},"Capacitor.JS","\u002Flibraries\u002Fcapacitor","3.libraries\u002F200.capacitor",[157,161,165,169,173,177,181,185,189],{"title":158,"path":159,"stem":160},"SPP Bluetooth Printer for Capacitor.js","\u002Flibraries\u002Fcapacitor\u002Fbluetooth-printer","3.libraries\u002F200.capacitor\u002Fbluetooth-printer",{"title":162,"path":163,"stem":164},"Sunmi Camera Scanner for Capacitor.js","\u002Flibraries\u002Fcapacitor\u002Fsunmi-camera-scanner","3.libraries\u002F200.capacitor\u002Fsunmi-camera-scanner",{"title":166,"path":167,"stem":168},"Sunmi Keyboard Handler for Capacitor.js","\u002Flibraries\u002Fcapacitor\u002Fsunmi-keyboard-handler","3.libraries\u002F200.capacitor\u002Fsunmi-keyboard-handler",{"title":170,"path":171,"stem":172},"Sunmi Inner Printer SDK for Capacitor.js","\u002Flibraries\u002Fcapacitor\u002Fsunmi-printer","3.libraries\u002F200.capacitor\u002Fsunmi-printer",{"title":174,"path":175,"stem":176},"Sunmi Scan Head  SDK for Capacitor.js","\u002Flibraries\u002Fcapacitor\u002Fsunmi-scanhead","3.libraries\u002F200.capacitor\u002Fsunmi-scanhead",{"title":178,"path":179,"stem":180},"Sunmi Scan Head (lite) SDK for Capacitor.js","\u002Flibraries\u002Fcapacitor\u002Fsunmi-scanhead-lite","3.libraries\u002F200.capacitor\u002Fsunmi-scanhead-lite",{"title":182,"path":183,"stem":184},"Sunmi UHF RFID SDK for Capacitor.js","\u002Flibraries\u002Fcapacitor\u002Fsunmi-uhf","3.libraries\u002F200.capacitor\u002Fsunmi-uhf",{"title":186,"path":187,"stem":188},"Dymo M10 USB Scale driver for Capacitor.js","\u002Flibraries\u002Fcapacitor\u002Fusb-scale","3.libraries\u002F200.capacitor\u002Fusb-scale",{"title":190,"path":191,"stem":192},"WebView WatchDog for Capacitor.js","\u002Flibraries\u002Fcapacitor\u002Fwebview-watchdog","3.libraries\u002F200.capacitor\u002Fwebview-watchdog",{"title":194,"path":195,"stem":196,"children":197,"page":87},"JavaScript & TypeScript","\u002Flibraries\u002Fjs","3.libraries\u002F300.js",[198,202],{"title":199,"path":200,"stem":201},"Partial Key Verification Library for TS\u002FJS","\u002Flibraries\u002Fjs\u002Fpartial-key-verification","3.libraries\u002F300.js\u002Fpartial-key-verification",{"title":203,"path":204,"stem":205},"WebPrint.JS","\u002Flibraries\u002Fjs\u002Fwebprint","3.libraries\u002F300.js\u002Fwebprint",{"title":207,"path":208,"stem":209,"children":210,"page":87},".NET & C#","\u002Flibraries\u002Fnet","3.libraries\u002F400.net",[211,214],{"title":55,"path":212,"stem":213},"\u002Flibraries\u002Fnet\u002Ffile-hasher","3.libraries\u002F400.net\u002Ffile-hasher",{"title":215,"path":216,"stem":217},"Partial Key Verification Library for Compact Framework","\u002Flibraries\u002Fnet\u002Fpartial-key-verification","3.libraries\u002F400.net\u002Fpartial-key-verification",{"title":71,"path":219,"stem":220,"children":221,"page":87},"\u002Flibraries\u002Fdeprecated","3.libraries\u002F999.deprecated",[222,226,230,234,238,242,246,250,254,258,262,266,270],{"title":223,"path":224,"stem":225},"CoinHive API and Captcha","\u002Flibraries\u002Fdeprecated\u002Fcoinhive-api","3.libraries\u002F999.deprecated\u002Fcoinhive-api",{"title":227,"path":228,"stem":229},"Eloquent Encryptable","\u002Flibraries\u002Fdeprecated\u002Feloquent-encryptable","3.libraries\u002F999.deprecated\u002Feloquent-encryptable",{"title":231,"path":232,"stem":233},"Eloquent GUID-able","\u002Flibraries\u002Fdeprecated\u002Feloquent-guidable","3.libraries\u002F999.deprecated\u002Feloquent-guidable",{"title":235,"path":236,"stem":237},"Laravel Web Cron","\u002Flibraries\u002Fdeprecated\u002Flaravel-cron","3.libraries\u002F999.deprecated\u002Flaravel-cron",{"title":239,"path":240,"stem":241},"Laravel .env filler","\u002Flibraries\u002Fdeprecated\u002Flaravel-dotenv-filler","3.libraries\u002F999.deprecated\u002Flaravel-dotenv-filler",{"title":243,"path":244,"stem":245},"Laravel Permissions","\u002Flibraries\u002Fdeprecated\u002Flaravel-permissions","3.libraries\u002F999.deprecated\u002Flaravel-permissions",{"title":247,"path":248,"stem":249},"Polish Validator Rules for Laravel","\u002Flibraries\u002Fdeprecated\u002Flaravel-polish-validator","3.libraries\u002F999.deprecated\u002Flaravel-polish-validator",{"title":251,"path":252,"stem":253},"Laravel SMS Notification Channel","\u002Flibraries\u002Fdeprecated\u002Flaravel-sms","3.libraries\u002F999.deprecated\u002Flaravel-sms",{"title":255,"path":256,"stem":257},"Laravel SMS Notification Channel - JustSend.pl Driver","\u002Flibraries\u002Fdeprecated\u002Flaravel-sms-justsend","3.libraries\u002F999.deprecated\u002Flaravel-sms-justsend",{"title":259,"path":260,"stem":261},"Laravel SMS Notification Channel - SerwerSMS.pl Driver","\u002Flibraries\u002Fdeprecated\u002Flaravel-sms-serwersms","3.libraries\u002F999.deprecated\u002Flaravel-sms-serwersms",{"title":263,"path":264,"stem":265},"Diceware Generator","\u002Flibraries\u002Fdeprecated\u002Fpassphrase-generator","3.libraries\u002F999.deprecated\u002Fpassphrase-generator",{"title":267,"path":268,"stem":269},"Raw Printer tools for C#","\u002Flibraries\u002Fdeprecated\u002Fraw-printer","3.libraries\u002F999.deprecated\u002Fraw-printer",{"title":271,"path":272,"stem":273},"Signed Document","\u002Flibraries\u002Fdeprecated\u002Fsigned-document","3.libraries\u002F999.deprecated\u002Fsigned-document","charm:package",{"id":276,"title":227,"active":87,"body":277,"description":470,"extension":471,"featured":472,"featured_description":472,"featured_icon":472,"github":286,"layout":472,"links":472,"list_title":472,"meta":473,"navigation":474,"path":228,"platform":475,"seo":476,"stem":229,"system":472,"system_url":472,"type":477,"__hash__":478},"docs\u002F3.libraries\u002F999.deprecated\u002Feloquent-encryptable.md",{"type":278,"value":279,"toc":465},"minimark",[280,300,408,413,419,427,431,434,440,444,451,461],[281,282,283,290,295],"u-button-group",{},[284,285,289],"u-button",{"href":286,"icon":287,"target":288},"https:\u002F\u002Fgithub.com\u002Fkduma-OSS\u002FLV-eloquent-encryptable","bxl:github","_blank","GitHub Repository",[284,291,294],{"href":292,"icon":293,"target":288},"https:\u002F\u002Fgithub.com\u002Fkduma-OSS\u002FLV-eloquent-encryptable\u002Freleases\u002Flatest\u002F","material-symbols:cloud-download","Releases",[284,296,299],{"href":297,"icon":298,"target":288},"https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fkduma\u002Feloquent-encryptable","simple-icons:packagist","Packagist",[301,302,303,319],"warning",{},[304,305,306,310,311,318],"p",{},[307,308,309],"strong",{},"Package EOL:"," This package is no longer maintained. Since Laravel 8, the framework includes built-in ",[312,313,317],"a",{"href":314,"rel":315},"https:\u002F\u002Flaravel.com\u002Fdocs\u002Feloquent-mutators#encrypted-casting",[316],"nofollow","encrypted casts"," which provide the same functionality natively. Please migrate to native encrypted casts:",[320,321,326],"pre",{"className":322,"code":323,"language":324,"meta":325,"style":325},"language-php shiki shiki-themes material-theme-lighter github-light github-dark monokai","protected $casts = [\n    'secret_field' => 'encrypted',\n    'secret_array' => 'encrypted:array',\n];\n","php","",[327,328,329,353,381,402],"code",{"__ignoreMap":325},[330,331,334,338,342,346,350],"span",{"class":332,"line":333},"line",1,[330,335,337],{"class":336},"sTNss","protected",[330,339,341],{"class":340},"swvn1"," $",[330,343,345],{"class":344},"ss--_","casts ",[330,347,349],{"class":348},"sGXK2","=",[330,351,352],{"class":340}," [\n",[330,354,356,360,364,367,370,373,376,378],{"class":332,"line":355},2,[330,357,359],{"class":358},"siCPE","    '",[330,361,363],{"class":362},"sLACW","secret_field",[330,365,366],{"class":358},"'",[330,368,369],{"class":348}," =>",[330,371,372],{"class":358}," '",[330,374,375],{"class":362},"encrypted",[330,377,366],{"class":358},[330,379,380],{"class":340},",\n",[330,382,384,386,389,391,393,395,398,400],{"class":332,"line":383},3,[330,385,359],{"class":358},[330,387,388],{"class":362},"secret_array",[330,390,366],{"class":358},[330,392,369],{"class":348},[330,394,372],{"class":358},[330,396,397],{"class":362},"encrypted:array",[330,399,366],{"class":358},[330,401,380],{"class":340},[330,403,405],{"class":332,"line":404},4,[330,406,407],{"class":340},"];\n",[409,410,412],"h2",{"id":411},"setup","Setup",[304,414,415,416],{},"Add the package to the require section of your composer.json and run ",[327,417,418],{},"composer update",[320,420,425],{"className":421,"code":423,"language":424},[422],"language-text","\"kduma\u002Feloquent-encryptable\": \"^1.1\"\n","text",[327,426,423],{"__ignoreMap":325},[409,428,430],{"id":429},"prepare-models","Prepare models",[304,432,433],{},"In your model add following lines:",[320,435,438],{"className":436,"code":437,"language":424},[422],"use \\KDuma\\Eloquent\\Encryptable;\nprotected $encrypted=['list', 'of', 'fields', 'you', 'wan\\'t', 'to', 'encrypt'];\n",[327,439,437],{"__ignoreMap":325},[409,441,443],{"id":442},"usage","Usage",[304,445,446,447,450],{},"It will be automatically encrypting and decrypting fields defined in ",[327,448,449],{},"$encrypted"," property of your model.",[304,452,453,454,457,458,460],{},"Those fields must be ",[327,455,456],{},"string"," or ",[327,459,424],{}," for longer values.",[462,463,464],"style",{},"html pre.shiki code .sTNss, html code.shiki .sTNss{--shiki-light:#9C3EDA;--shiki-default:#D73A49;--shiki-dark:#F97583;--shiki-sepia:#F92672}html pre.shiki code .swvn1, html code.shiki .swvn1{--shiki-light:#39ADB5;--shiki-default:#24292E;--shiki-dark:#E1E4E8;--shiki-sepia:#F8F8F2}html pre.shiki code .ss--_, html code.shiki .ss--_{--shiki-light:#90A4AE;--shiki-default:#24292E;--shiki-dark:#E1E4E8;--shiki-sepia:#F8F8F2}html pre.shiki code .sGXK2, html code.shiki .sGXK2{--shiki-light:#39ADB5;--shiki-default:#D73A49;--shiki-dark:#F97583;--shiki-sepia:#F92672}html pre.shiki code .siCPE, html code.shiki .siCPE{--shiki-light:#39ADB5;--shiki-default:#032F62;--shiki-dark:#9ECBFF;--shiki-sepia:#E6DB74}html pre.shiki code .sLACW, html code.shiki .sLACW{--shiki-light:#91B859;--shiki-default:#032F62;--shiki-dark:#9ECBFF;--shiki-sepia:#E6DB74}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .sepia .shiki span {color: var(--shiki-sepia);background: var(--shiki-sepia-bg);font-style: var(--shiki-sepia-font-style);font-weight: var(--shiki-sepia-font-weight);text-decoration: var(--shiki-sepia-text-decoration);}html.sepia .shiki span {color: var(--shiki-sepia);background: var(--shiki-sepia-bg);font-style: var(--shiki-sepia-font-style);font-weight: var(--shiki-sepia-font-weight);text-decoration: var(--shiki-sepia-text-decoration);}",{"title":325,"searchDepth":355,"depth":355,"links":466},[467,468,469],{"id":411,"depth":355,"text":412},{"id":429,"depth":355,"text":430},{"id":442,"depth":355,"text":443},"Eases using and generating slugs Laravel Eloquent models.","md",null,{},true,"Laravel",{"title":227,"description":470},"library","q_hM8WVwIsIZuC0lRWXpSMPYdBtxch-SpzDvNbTqxvk",[480,482],{"title":223,"path":224,"stem":225,"description":481,"children":-1},"PHP and Laravel 5 CoinHive API and Captcha",{"title":231,"path":232,"stem":233,"description":483,"children":-1},"Eases using and generating guid's in Laravel Eloquent models.",1775662909061]