Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

pullreq #18

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')
// ->hourly();
$schedule->command('migrate:fresh --seed --force')
->daily();
}

/**
Expand Down
5 changes: 3 additions & 2 deletions config/broadcasting.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@
'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'),
'encrypted' => true,
'host' => '127.0.0.1',
// 'host' => '127.0.0.1',
'host' => 'chat.laravelecommerceexample.ca',
'port' => 6001,
'scheme' => 'http'
'scheme' => 'https'
],
],

Expand Down
9 changes: 5 additions & 4 deletions config/websockets.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,19 @@
* certificate chain of issuers. The private key also may be contained
* in a separate file specified by local_pk.
*/
'local_cert' => null,
'local_cert' => '/etc/nginx/ssl/chat.laravelecommerceexample.ca/460418/server.crt',

/*
* Path to local private key file on filesystem in case of separate files for
* certificate (local_cert) and private key.
*/
'local_pk' => null,
'local_pk' => '/etc/nginx/ssl/chat.laravelecommerceexample.ca/460418/server.key',

/*
* Passphrase with which your local_cert file was encoded.
*/
'passphrase' => null
'passphrase' => null,
'verify_peer' => false
],

'statistics' => [
Expand All @@ -91,4 +92,4 @@
*/
'delete_statistics_older_than_days' => 60
],
];
];
2 changes: 1 addition & 1 deletion database/seeds/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ class DatabaseSeeder extends Seeder
*/
public function run()
{
// $this->call(UsersTableSeeder::class);
$this->call(UsersTableSeeder::class);
}
}
45 changes: 45 additions & 0 deletions database/seeds/UsersTableSeeder.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php

use App\User;
use Illuminate\Database\Seeder;

class UsersTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
User::create([
'name' => 'User',
'email' => 'user@user.com',
'password' => bcrypt('password'),
]);

User::create([
'name' => 'Andre',
'email' => 'andre@andre.com',
'password' => bcrypt('password'),
]);

User::create([
'name' => 'Tony Stark',
'email' => 'tony@avengers.com',
'password' => bcrypt('password'),
]);

User::create([
'name' => 'Thor',
'email' => 'thor@avengers.com',
'password' => bcrypt('password'),
]);

User::create([
'name' => 'Administrator',
'email' => 'admin@admin.com',
'password' => bcrypt('password'),
]);
}
}