I mean like if I am using queries in mysql shell command in terminal in Linux, it should reflect on phpmyadmin right?

|
DesolatorMagno 2020-05-13 21:53:20
->save()
2020-05-13 22:50:05
what is the best way to to add @mention in laravel…? like facebook comment box
2020-05-13 22:51:01
any library for such purpose???
DesolatorMagno 2020-05-13 22:54:52
If you are searching for the best package, best tool, best way, you will have a hard time, usually there are bad ways, and not so bad ways to just do things.
cayetanohosma 2020-05-14 00:13:36
Hi folks!
cayetanohosma 2020-05-14 00:15:01
I’m facing with a strange error with Tests and I will write here looking for some help or any clue to fix it. I’m using Laravel 6.x

The case is I am creating a package and inside it, in Tests folder I have created the following structure:

cayetanohosma 2020-05-14 00:15:21
laravel_discuss-37315.jpg

cayetanohosma 2020-05-14 00:17:13
I create my own TestCase class, named EstadoWebTestCase.php and it contains the following code:
<?php

namespace EstadoWebSecurityTests;

use IlluminateFoundationTestingWithoutMiddleware;
use IlluminateFoundationTestingRefreshDatabase;
use FakerGenerator as Faker;
use FakerFactory as FakerFactory;
use TestsTestCase;
use TestsCreatesApplication;

/**
* Base test case class for all test under El Estado Web umbrella.
*
* @author Cayetano H. Osma <chernandez@elestadoweb.com>
* @version May 2020
*
* @category Test base classº
* @package Security
* @subpackage Test
*/

class EstadoWebTestCase extends TestCase
{
use CreatesApplication;
use RefreshDatabase;
use WithoutMiddleware;

/**
* @var Faker
*/
protected $fakerInstance;

/**
* Setup function where you can define your own properties.
*
* @author Cayetano H. Osma <chernandez@elestadoweb.com>
* @version May 2020
*
*/
protected function setUp() : void
{
parent::setUp();
$this->fakerInstance = FakerFactory::create();

}

}
And I have created the UserModelTest.php cotaining the following code:
<?php

namespace EstadoWebSecurityTestsModels;

use EstadoWebSecurityModelsUser;
use EstadoWebSecurityTestsEstadoWebTestCase;
use IlluminateDatabaseQueryException;

/**
* Tests for User models
*
* @author Cayetano H. Osma <chernandez@elestadoweb.com>
* @version May 2020
*
* @category User Model
* @package Security
* @subpackage Test
*/

class UserModelTest extends EstadoWebTestCase
{
/**
* Test to try to insert an existing user.
*
* @author Cayetano H. Osma <chernandez@elestadoweb.com>
* @version May 2020
*
*/
public function testTryToInsertExistingUser() : void
{
$user = new User();

$user->firstname = ‘Cayetano’;
$user->lastname = ‘H. Osma.’;
$user->email = ‘chernandez@eelestadoweb.com’;
$user->username = ‘chernandez’;
$user->password = ‘12345’;

$user->save();

$this->expectException(QueryException::class);
$this->assertNotEmpty($user->id);
}

/**
* Test to insert a new user.
*
* @author Cayetano H. Osma <chernandez@elestadoweb.com>
* @version May 2020
*
*/
public function testInsertNewUser() : void
{
$user = factory(User::class)->times(1)->create();

$user->save();

$this->assertNotEmpty($user->id);
}

}

cayetanohosma 2020-05-14 00:17:42
When I try to run the Tests. I get the following error:
Testing started at 22:10 …
[docker-compose://[/Users/chernandez/Projects/PHP/cms/docker/docker-compose.yml]:php/]:php /var/www/CMS/vendor/phpunit/phpunit/phpunit –configuration /var/www/CMS/phpunit.xml /var/www/CMS/packages/estadoweb/security/Tests –teamcity

Fatal error: Uncaught Error: Class ‘EstadoWebSecurityTestsEstadoWebTestCase’ not found in /var/www/CMS/packages/estadoweb/security/Tests/Database/Models/UserModelTest.php on line 20

Error: Class ‘EstadoWebSecurityTestsEstadoWebTestCase’ not found in /var/www/CMS/packages/estadoweb/security/Tests/Database/Models/UserModelTest.php on line 20

Call Stack:
0.0022 403752 1. {main}() /var/www/CMS/vendor/phpunit/phpunit/phpunit:0
0.0941 2218904 2. PHPUnitTextUICommand::main() /var/www/CMS/vendor/phpunit/phpunit/phpunit:61
0.0941 2219032 3. PHPUnitTextUICommand->run() /var/www/CMS/vendor/phpunit/phpunit/src/TextUI/Command.php:163
0.1545 2908992 4. PHPUnitTextUITestRunner->getTest() /var/www/CMS/vendor/phpunit/phpunit/src/TextUI/Command.php:181
0.1934 3019736 5. PHPUnitFrameworkTestSuite->addTestFiles() /var/www/CMS/vendor/phpunit/phpunit/src/Runner/BaseTestRunner.php:94
0.1935 3019736 6. PHPUnitFrameworkTestSuite->addTestFile() /var/www/CMS/vendor/phpunit/phpunit/src/Framework/TestSuite.php:452
0.1955 3019736 7. PHPUnitUtilFileLoader::checkAndLoad() /var/www/CMS/vendor/phpunit/phpunit/src/Framework/TestSuite.php:354
0.1963 3020008 8. PHPUnitUtilFileLoader::load() /var/www/CMS/vendor/phpunit/phpunit/src/Util/FileLoader.php:47
0.1986 3026272 9. include_once(‘/var/www/CMS/packages/estadoweb/security/Tests/Database/Models/UserModelTest.php’) /var/www/CMS/vendor/phpunit/phpunit/src/Util/FileLoader.php:59

Process finished with exit code 255

cayetanohosma 2020-05-14 00:18:40
I don’t find any solution to fix it. Probably the solution is in front of me, but I can’t see it, I stucked here for two days and I don’t know how to get out the hole and continue with the package’s test
cayetanohosma 2020-05-14 00:19:06
I Would apreciate any clue or help which ever it be
cayetanohosma 2020-05-14 00:19:14
Thanks in advance
cayetanohosma 2020-05-14 00:28:28
Wow! Finally I fix it
cayetanohosma 2020-05-14 00:29:16
To everybody to take note for fix

You must declare the Tests in autoload-dev section into the package’s composer.json

Sujay 2020-05-14 08:12:56
https://laravel.com/docs/7.x/verification
Developer_124 2020-05-14 08:43:41
laravel_discuss-37335.jpg

Developer_124 2020-05-14 08:44:19
How to resolve this error
Z_Yamin 2020-05-14 08:47:00
I need php stome 2020 activation code, if you have please share with me🙏
Chinar08 2020-05-14 08:54:11
Developer_124 2020-05-14 08:44:19
How to resolve this error

Try under trivia web service again

Chinar08 2020-05-14 08:54:19
Not under autoload
Chinar08 2020-05-14 08:57:19
youssef herrouch 2020-05-13 20:47:23
how to use sql in laravel

Can use models toon

Developer_124 2020-05-14 09:08:05
laravel_discuss-37341.jpg

Developer_124 2020-05-14 09:08:56
Chinar08 2020-05-14 08:54:11
Try under trivia web service again

i m serving under trivia-web-service

Developer_124 2020-05-14 09:09:25
cant able to install composer
flyingdragons 2020-05-14 09:58:30
youssef herrouch 2020-05-13 20:47:23
how to use sql in laravel

Hi I have written an article on the same to run SQL queries in Laravel securely kinldy check it

flyingdragons 2020-05-14 09:58:38
https://stackcoder.in/posts/how-to-run-raw-queries-securely-in-laravel
flyingdragons 2020-05-14 10:07:52
Developer_124 2020-05-14 09:08:56
i m serving under trivia-web-service

Whats the error your getting

Developer_124 2020-05-14 10:09:21
flyingdragons 2020-05-14 10:07:52
Whats the error your getting

Now I resolved thanks

flyingdragons 2020-05-14 10:09:26
Cool
Prakash D 2020-05-14 10:11:23
I want to save 2 different array in one table and two columns one by one
flyingdragons 2020-05-14 11:06:46
Please give us some example
mohsenalavinasab 2020-05-14 12:08:00
laravel_discuss-37357.jpg
#کاریابی #استخدام #همکاری #کاراموزی
flyingdragons 2020-05-14 12:36:05
mohsenalavinasab 2020-05-14 12:08:00
#کاریابی #استخدام #همکاری #کاراموزی

Have English version? Thank you

2020-05-14 12:39:10
How to connect mysql shell command to phpmyadmin
2020-05-14 12:39:47
I mean like if I am using queries in mysql shell command in terminal in Linux, it should reflect on phpmyadmin right?
2020-05-14 12:41:01
Need some help
Siberfx 2020-05-14 13:14:15
Huh
Siberfx 2020-05-14 13:14:40
it should
Siberfx 2020-05-14 13:14:53
Phpmyadmin is an interface only
Sumanta_mukhopadhyay 2020-05-14 13:15:46
Vue draggable how to drop with condition?
https://stackoverflow.com/q/61787126/11606046

Vue draggable how to drop with condition?Stack Overflow
To be more specific I have a main list from where the items to be dragged

[{name:’max’,type:os},{name:’robert’,type:db}]

Later the os should be be only dragged to os list and db to be only dragge…

Sumanta_mukhopadhyay 2020-05-14 13:15:57
Check this link if any one can answer
Mani 2020-05-14 13:59:05
How to run one migration on multiple dbs on same server
Mani 2020-05-14 14:00:30
Multiple dbs are connected with one application.
Want to run migrations on all dbs if I run php artisan migrate on server
2020-05-14 14:07:01
Siberfx 2020-05-14 13:14:53
Phpmyadmin is an interface only

Yes right, but when I am using MySQL queries in mysql shell in terminal, it’s not reflecting on phpmyadmin

Siberfx 2020-05-14 14:08:26
it should be
2020-05-14 14:08:41
Yeah I have to check that
Roham0010 2020-05-14 14:32:22
Z_Yamin 2020-05-14 08:47:00
I need php stome 2020 activation code, if you have please share with me🙏

As a suggestion use VSCode or sublime they are free and a lot of plugins for whatever you want

Roham0010 2020-05-14 14:36:14
2020-05-14 14:07:01
Yes right, but when I am using MySQL queries in mysql shell in terminal, it’s not reflecting on phpmyadmin

Maybe your MySQL cli is a different version than phpmyadmin check it..

rebory 2020-05-14 14:45:24
friends i face different error when i publish it on server
rebory 2020-05-14 14:46:16
download this file when i try to open domain name
|