Create class event App\Events\TestEvent::class
<?php
namespace App\Events;
class TestEvent| function getFormItems(form_id) { | |
| try { | |
| // Validate form_id | |
| if (!form_id || typeof form_id !== 'string') { | |
| throw new Error('Invalid form_id provided'); | |
| } | |
| // Open a form by ID | |
| var form = FormApp.openById(form_id); | |
| <?php | |
| namespace App\Http\Controllers; | |
| use GuzzleHttp\Pool; | |
| use GuzzleHttp\Client; | |
| use GuzzleHttp\Psr7\Response; | |
| use GuzzleHttp\Exception\ClientException; | |
| use GuzzleHttp\Exception\RequestException; |
| Get-ChildItem *.php -Recurse | Rename-Item -NewName { $_.Name -replace '.php','.blade.php' } |
| <?php | |
| /** | |
| * CodeIgniter | |
| * | |
| * An open source application development framework for PHP | |
| * | |
| * This content is released under the MIT License (MIT) | |
| * | |
| * Copyright (c) 2014-2019 British Columbia Institute of Technology |
| if (! function_exists('factory')) { | |
| /** | |
| * Create a factory seeder. | |
| * | |
| * @param Model|object|string $model Instance or name of the model | |
| * @param int|null $count Create factory | |
| * @param array|null $formatters Difine faker factory | |
| * @param array|null $overrides Overriding data to pass to Fabricator::setOverrides() | |
| * @return object|array | |
| */ |
First of all, please note that token expiration and revoking are two different things.
A JWT token that never expires is dangerous if the token is stolen then someone can always access the user's data.
Quoted from JWT RFC:
| <?php | |
| namespace App\Facades; | |
| use Config\Database; | |
| /** | |
| * @method static void initialize() | |
| * @method static void close() | |
| * @method static mixed persistentConnect() |
| <?xml version="1.0"?> | |
| <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> | |
| <!-- | |
| /** | |
| * | |
| * Licensed to the Apache Software Foundation (ASF) under one | |
| * or more contributor license agreements. See the NOTICE file | |
| * distributed with this work for additional information | |
| * regarding copyright ownership. The ASF licenses this file | |
| * to you under the Apache License, Version 2.0 (the |