Skip to content

Commit

Permalink
upgrading to laravel 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Oke Ugwu committed Jul 13, 2018
1 parent d2c60af commit 76fc61e
Show file tree
Hide file tree
Showing 190 changed files with 10,809 additions and 2,245 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_style = space
indent_size = 2
39 changes: 39 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
* text=auto
*.css linguist-vendored
*.scss linguist-vendored
*.js linguist-vendored
CHANGELOG.md export-ignore
20 changes: 15 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
/bootstrap/compiled.php
/node_modules
/public/hot
/public/storage
/storage/*.key
/vendor
/.idea
/.vscode
/.vagrant
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
.env

/bootstrap/compiled.php
composer.phar
composer.lock
.env.*.php
.env.php
.DS_Store
Thumbs.db
.idea
*.pid
/app/storage/*
/app/storage/tmp
/app/storage/monit
/node_modules
/.sass-cache
installed.json
commander.config.php
cme-commander.pem
cme-commander
version
version
3 changes: 0 additions & 3 deletions CONTRIBUTING.md

This file was deleted.

8 changes: 4 additions & 4 deletions app/Cme/Cli/CreateUser.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace Cme\Cli;
namespace App\Cme\Cli;

use Cme\Helpers\InstallerHelper;
use Cme\Lib\Cli\CmeCommand;
use App\Cme\Helpers\InstallerHelper;
use App\Cme\Lib\Cli\CmeCommand;

class CreateUser extends CmeCommand
{
Expand Down Expand Up @@ -36,7 +36,7 @@ public function __construct()
*
* @return mixed
*/
public function fire()
public function handle()
{
$username = $this->ask("Username:");
$password = $this->secret("Password:");
Expand Down
6 changes: 3 additions & 3 deletions app/Cme/Cli/DbSnapshot.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Cme\Cli;
namespace App\Cme\Cli;

use Cme\Lib\Cli\CmeCommand;
use App\Cme\Lib\Cli\CmeCommand;
use Illuminate\Support\Facades\DB;

class DbSnapshot extends CmeCommand
Expand Down Expand Up @@ -36,7 +36,7 @@ public function __construct()
*
* @return mixed
*/
public function fire()
public function handle()
{
$snapshotFile = implode(
DIRECTORY_SEPARATOR,
Expand Down
10 changes: 4 additions & 6 deletions app/Cme/Cli/GenerateInstallFiles.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Cme\Cli;
namespace App\Cme\Cli;

use Way\Generators\Commands\GeneratorCommand;
use Symfony\Component\Console\Input\InputOption;
Expand Down Expand Up @@ -80,14 +80,12 @@ class GenerateInstallFiles extends GeneratorCommand
*/
protected $table;

public function __construct(
Config $config
)
public function __construct()
{
$this->file = new Filesystem();
$generator = new Generator($this->file);
$this->compiler = new TemplateCompiler();
$this->config = $config;
$this->config = config();

parent::__construct($generator);
}
Expand All @@ -97,7 +95,7 @@ public function __construct(
*
* @return void
*/
public function fire()
public function handle()
{
$this->info('Using connection: ' . $this->option('connection') . "\n");
$this->schemaGenerator = new SchemaGenerator(
Expand Down
6 changes: 3 additions & 3 deletions app/Cme/Cli/GenerateMigrationFiles.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Cme\Cli;
namespace App\Cme\Cli;

use Cme\Lib\Cli\CmeCommand;
use App\Cme\Lib\Cli\CmeCommand;
use Illuminate\Support\Facades\DB;

class GenerateMigrationFiles extends CmeCommand
Expand Down Expand Up @@ -45,7 +45,7 @@ public function __construct()
*
* @return mixed
*/
public function fire()
public function handle()
{
//load snapshot
$snapshotFile = implode(
Expand Down
6 changes: 3 additions & 3 deletions app/Cme/Cli/InstallCommander.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace Cme\Cli;
namespace App\Cme\Cli;

use Aws\Ec2\Ec2Client;
use Cme\Lib\Cli\CmeCommand;
use App\Cme\Lib\Cli\CmeCommand;
use Illuminate\Support\Facades\Config;
use Symfony\Component\Console\Input\InputOption;

Expand Down Expand Up @@ -75,7 +75,7 @@ private function _validateAws()
*
* @return mixed
*/
public function fire()
public function handle()
{
$this->_validateAws();
$this->_ec2Client = Ec2Client::factory($this->_awsCredentials);
Expand Down
8 changes: 4 additions & 4 deletions app/Cme/Cli/InstallDb.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace Cme\Cli;
namespace App\Cme\Cli;

use Cme\Helpers\InstallerHelper;
use Cme\Lib\Cli\CmeCommand;
use App\Cme\Helpers\InstallerHelper;
use App\Cme\Lib\Cli\CmeCommand;
use Symfony\Component\Console\Input\InputArgument;

class InstallDb extends CmeCommand
Expand Down Expand Up @@ -37,7 +37,7 @@ public function __construct()
*
* @return mixed
*/
public function fire()
public function handle()
{
$table = $this->argument('table');
$classes = [];
Expand Down
10 changes: 5 additions & 5 deletions app/Cme/Cli/ListImporter.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
namespace Cme\Cli;
namespace App\Cme\Cli;

use Cme\Helpers\ApiImporter;
use Cme\Helpers\CsvImporter;
use Cme\Lib\Cli\LongRunningScript;
use App\Cme\Helpers\ApiImporter;
use App\Cme\Helpers\CsvImporter;
use App\Cme\Lib\Cli\LongRunningScript;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Symfony\Component\Console\Input\InputArgument;
Expand Down Expand Up @@ -40,7 +40,7 @@ public function __construct()
*
* @return mixed
*/
public function fire()
public function handle()
{
$this->_init();
$this->_createPIDFile();
Expand Down
8 changes: 4 additions & 4 deletions app/Cme/Cli/ListRefresher.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace Cme\Cli;
namespace App\Cme\Cli;

use Cme\Helpers\ApiImporter;
use Cme\Lib\Cli\LongRunningScript;
use App\Cme\Helpers\ApiImporter;
use App\Cme\Lib\Cli\LongRunningScript;
use Illuminate\Support\Facades\DB;
use Symfony\Component\Console\Input\InputArgument;

Expand Down Expand Up @@ -38,7 +38,7 @@ public function __construct()
*
* @return mixed
*/
public function fire()
public function handle()
{
$this->_init();
$this->_createPIDFile();
Expand Down
6 changes: 3 additions & 3 deletions app/Cme/Cli/QueueMessages.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Cme\Cli;
namespace App\Cme\Cli;

use Cme\Lib\Cli\LongRunningScript;
use App\Cme\Lib\Cli\LongRunningScript;
use CmeKernel\Core\CmeKernel;
use CmeKernel\Helpers\CampaignHelper;
use CmeKernel\Helpers\FilterHelper;
Expand Down Expand Up @@ -42,7 +42,7 @@ public function __construct()
*
* @return mixed
*/
public function fire()
public function handle()
{
$this->_init();
$this->_createPIDFile();
Expand Down
6 changes: 3 additions & 3 deletions app/Cme/Cli/SendEmails.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Cme\Cli;
namespace App\Cme\Cli;

use Cme\Lib\Cli\LongRunningScript;
use App\Cme\Lib\Cli\LongRunningScript;
use Illuminate\Support\Facades\Crypt;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
Expand Down Expand Up @@ -49,7 +49,7 @@ public function __construct()
*
* @return mixed
*/
public function fire()
public function handle()
{
$this->_init();
$this->_createPIDFile();
Expand Down
6 changes: 3 additions & 3 deletions app/Cme/Cli/SesTool.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
namespace Cme\Cli;
namespace App\Cme\Cli;

use Aws\Ses\SesClient;
use Aws\Sns\SnsClient;
use Aws\Sqs\SqsClient;
use Cme\Lib\Cli\CmeCommand;
use App\Cme\Lib\Cli\CmeCommand;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\DB;
use Symfony\Component\Console\Input\InputArgument;
Expand Down Expand Up @@ -67,7 +67,7 @@ private function _validateAws()
*
* @return mixed
*/
public function fire()
public function handle()
{
$this->_validateAws();
$task = $this->argument('task');
Expand Down
8 changes: 4 additions & 4 deletions app/Cme/Cli/Setup.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace Cme\Cli;
namespace App\Cme\Cli;

use Cme\Helpers\InstallerHelper;
use Cme\Lib\Cli\CmeCommand;
use App\Cme\Helpers\InstallerHelper;
use App\Cme\Lib\Cli\CmeCommand;

class Setup extends CmeCommand
{
Expand Down Expand Up @@ -36,7 +36,7 @@ public function __construct()
*
* @return mixed
*/
public function fire()
public function handle()
{
$this->info(
"Welcome to CME Setup. This tool will help you install CME on your system"
Expand Down
8 changes: 4 additions & 4 deletions app/Cme/Cli/UninstallDb.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace Cme\Cli;
namespace App\Cme\Cli;

use Cme\Helpers\InstallerHelper;
use Cme\Lib\Cli\CmeCommand;
use App\Cme\Helpers\InstallerHelper;
use App\Cme\Lib\Cli\CmeCommand;
use Symfony\Component\Console\Input\InputArgument;

class UninstallDb extends CmeCommand
Expand Down Expand Up @@ -37,7 +37,7 @@ public function __construct()
*
* @return mixed
*/
public function fire()
public function handle()
{
$table = $this->argument('table');
if($table)
Expand Down
Loading

0 comments on commit 76fc61e

Please sign in to comment.