This file contains hidden or 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 | |
use Carbon\Carbon; | |
use Illuminate\Support\Arr; | |
if (!function_exists('version')) { | |
/** | |
* Attempts to determine the current version of the application, based on `version` set in config/app.php and either | |
* the file public/version.html (which should be created during the build process) or by exec'ing Git commands directly | |
* at runtime. This results in a string of the format `<app-version>-<hash> (<last-modified>)` |
This file contains hidden or 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); | |
use Lcobucci\JWT\Signer\Ecdsa\Sha256; | |
use Lcobucci\JWT\Signer\Key\InMemory; | |
use Lcobucci\JWT\Encoding\UnixTimestampDates; | |
use Lcobucci\JWT\Decoder; | |
use Lcobucci\JWT\Encoder; | |
use Lcobucci\JWT\Encoding\CannotDecodeContent; |
This file contains hidden or 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 | |
/** | |
* @author Corey Mcmahon <[email protected]> | |
* @date: 15 January 2021 | |
*/ | |
declare(strict_types=1); | |
namespace Foodkit\AppStores; |
This file contains hidden or 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 | |
/** | |
* @author Corey Mcmahon <[email protected]> | |
* @date: 15 January 2021 | |
*/ | |
declare(strict_types=1); | |
namespace Foodkit\AppStores; |
This file contains hidden or 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 all relations from database | |
SELECT c.relname FROM pg_class c WHERE c.relkind = 'S'; | |
-- Get Max ID from table | |
SELECT MAX(id) FROM table; | |
-- Get Next ID from table | |
SELECT nextval('table_id_seq'); | |
-- Set Next ID Value to MAX ID |
This file contains hidden or 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 [ | |
'default' => env('LOG_CHANNEL', 'stack'), | |
'channels' => [ | |
'stack' => [ | |
'driver' => 'stack', | |
'channels' => ['single'], | |
], |
This file contains hidden or 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
version: '3.7' | |
services: | |
# foodkit php api | |
app: | |
container_name: foodkit.app | |
build: | |
context: ./docker/app | |
dockerfile: Dockerfile | |
image: foodkitapp.io/app | |
init: true |
This file contains hidden or 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; | |
use Illuminate\Console\Command; | |
class CleanTempCommand extends Command | |
{ | |
protected $signature = "app:clean-temp"; |
This file contains hidden or 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; | |
use Symfony\Component\Console\Command\Command; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
class CleanTempCommand extends Command | |
{ |
This file contains hidden or 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
{ | |
"id": 14557, | |
"name": "Flat White", | |
"price": 125, | |
"before_sale_price": null, | |
"description": "Freshly-ground beans and steamed milk", | |
"full_description": "Freshly-ground beans and steamed milk", | |
"order": 1, | |
"category": { | |
"id": 1727, |