<?php
defined('BASEPATH') or exit('No direct script access allowed');
$config = [
/*
|--------------------------------------------------------------------------
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\Facades; | |
use Config\Database; | |
/** | |
* @method static void initialize() | |
* @method static void close() | |
* @method static mixed persistentConnect() |
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\Http\Controllers; | |
use GuzzleHttp\Pool; | |
use GuzzleHttp\Client; | |
use GuzzleHttp\Psr7\Response; | |
use GuzzleHttp\Exception\ClientException; | |
use GuzzleHttp\Exception\RequestException; |
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
Get-ChildItem *.php -Recurse | Rename-Item -NewName { $_.Name -replace '.php','.blade.php' } |
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 | |
/** | |
* 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 |
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
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.
- Expiration only happens for web apps, not for native mobile apps, because native apps never expire.
- Revoking only happens when (1) uses click the logout button on the website or native Apps;(2) users reset their passwords; (3) users revoke their tokens explicitly in the administration panel.
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:
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
<?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 |
This is a tutorial to realize following video: https://www.youtube.com/watch?v=PBiOGvJRPqg
- Android phone Marsmallow or higher or Apple phone (for google assistant)
- IFTTT app
- Blynk app
- Arduino UNO
- ESP8266 Wifi module
NewerOlder