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' | |
| services: | |
| fpm: | |
| image: tekz/php-stretch-fpm:7.3.2 | |
| volumes: | |
| - .:/var/www/html | |
| utility: |
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\Console\Commands; | |
| use App\Models\DateDimension; | |
| use Carbon\Carbon; | |
| use Carbon\CarbonPeriod; | |
| use Illuminate\Console\Command; | |
| use function ceil; | |
| use function now; |
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\Models; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\SoftDeletes; | |
| class DateDimension extends Model | |
| { | |
| /** | |
| * Indicates if the IDs are auto-incrementing. | |
| * |
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 Illuminate\Support\Facades\Schema; | |
| use Illuminate\Database\Schema\Blueprint; | |
| use Illuminate\Database\Migrations\Migration; | |
| class CreateDateDimensionsTable extends Migration | |
| { | |
| /** | |
| * Run the migrations. |
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 Tests\Unit; | |
| use Symfony\Component\Process\Process; | |
| use function base_path; | |
| use Tests\TestCase; | |
| class CodeStyleLinterTest extends TestCase | |
| { |
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
| #!/bin/bash | |
| #=========================================================== | |
| # FILE : script.sh | |
| # DESCRIPTION : Convert MS Access to MySQL. | |
| #=========================================================== | |
| set -o nounset # help avoid bugs | |
| shopt -s extglob | |
| PATH=/bin:/usr/bin:/sbin # for consistency | |
| # variables declaration |
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 Illuminate\Support\Facades\Schema; | |
| use Illuminate\Database\Schema\Blueprint; | |
| use Illuminate\Database\Migrations\Migration; | |
| class CreateUserTable extends Migration | |
| { | |
| /** | |
| * Run the migrations. |
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 | |
| // Initialize php setting - @node - NOT RECOMMENDED FOR PRODUCTION, update your php.ini if needed. | |
| error_reporting(E_ALL); | |
| ini_set('display_errors', 1); | |
| ini_set('memory_limit', '-1'); | |
| ini_set('max_execution_time', 30000); | |
| // Get the tree array from DB | |
| $treeArray = getDataFromDatabase(); |
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 | |
| // Initialize php setting - @node - NOT RECOMMENDED FOR PRODUCTION, update your php.ini if needed. | |
| error_reporting(E_ALL); | |
| ini_set('display_errors', 1); | |
| ini_set('memory_limit', '-1'); | |
| ini_set('max_execution_time', 30000); | |
| // Get the tree array from DB | |
| $treeArray = getDataFromDatabase(); |
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": "1", | |
| "parent_id": null, | |
| "name": "Electronics", | |
| "children": [ | |
| { | |
| "id": "2", | |
| "parent_id": "1", | |
| "name": "TV", | |
| "children": [ |
NewerOlder