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
[Illuminate\Database\QueryException] | |
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using pas | |
sword: YES) (SQL: select * from information_schema.tables where table_schem | |
a = questionbank and table_name = 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
2017-11-06T04:11:43.426284Z 0 [Note] Giving 0 client threads a chance to die gracefully | |
2017-11-06T04:11:43.426341Z 0 [Note] Shutting down slave threads | |
2017-11-06T04:11:43.426351Z 0 [Note] Forcefully disconnecting 0 remaining clients | |
2017-11-06T04:11:43.426362Z 0 [Note] Event Scheduler: Purging the queue. 0 events | |
2017-11-06T04:11:43.589629Z 0 [Note] Binlog end | |
2017-11-06T04:11:43.886067Z 0 [Note] Shutting down plugin 'ngram' | |
2017-11-06T04:11:43.982321Z 0 [Note] Shutting down plugin 'BLACKHOLE' | |
2017-11-06T04:11:43.982366Z 0 [Note] Shutting down plugin 'partition' | |
2017-11-06T04:11:43.982374Z 0 [Note] Shutting down plugin 'ARCHIVE' | |
2017-11-06T04:11:43.982380Z 0 [Note] Shutting down plugin 'MRG_MYISAM' |
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
2017-11-06T04:11:43.426284Z 0 [Note] Giving 0 client threads a chance to die gracefully | |
2017-11-06T04:11:43.426341Z 0 [Note] Shutting down slave threads | |
2017-11-06T04:11:43.426351Z 0 [Note] Forcefully disconnecting 0 remaining clients | |
2017-11-06T04:11:43.426362Z 0 [Note] Event Scheduler: Purging the queue. 0 events | |
2017-11-06T04:11:43.589629Z 0 [Note] Binlog end | |
2017-11-06T04:11:43.886067Z 0 [Note] Shutting down plugin 'ngram' | |
2017-11-06T04:11:43.982321Z 0 [Note] Shutting down plugin 'BLACKHOLE' | |
2017-11-06T04:11:43.982366Z 0 [Note] Shutting down plugin 'partition' | |
2017-11-06T04:11:43.982374Z 0 [Note] Shutting down plugin 'ARCHIVE' | |
2017-11-06T04:11:43.982380Z 0 [Note] Shutting down plugin 'MRG_MYISAM' |
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 Rockwood\Service; | |
use Rockwood\Entity\User; | |
class UserService | |
{ | |
public function createFromArray(array $data){ |
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 Rockwood\Entity\User; // add this line | |
use Rockwood\Service\UserService; | |
class UserServiceTest extends \Codeception\TestCase\Test | |
{ | |
/** | |
* @var \UnitTester | |
*/ |
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 | |
class DB { | |
private static $_instance = null; // to use in getInstance function (we can use static keyword) | |
private $_pdo, $_query, $_error = false, $_results, $_count = 0; | |
private function __construct() { | |
try { | |
$this->_pdo = new PDO("mysql:host=" . Config::get('mysql/host') . |
NewerOlder