β prev | next β
M 2020-11-06 20:37:36
DesolatorMagno 2020-11-06 20:37:19
…….
what dot
DesolatorMagno 2020-11-06 20:44:02
DesolatorMagno 2020-11-06 20:35:19
At the start of here should be a key that hold the db connection to use
That’s what matters, here you say what connection to use.
M 2020-11-06 20:49:13
DesolatorMagno 2020-11-06 20:44:02
That’s what matters, here you say what connection to use.
Unfortunately it does not work. Thank you for your interest.
DesolatorMagno 2020-11-06 20:49:50
You didn’t even show the line that I am telling you.
req98 2020-11-06 20:49:51
$name π€π€
This is an err from $connections
Check them
M 2020-11-06 20:51:07
no error in connection I tested
$ r = DB :: connection (‘DB001’) -> table (‘modul’) -> get ();
print_r ($ r); this code works on the controller
M 2020-11-06 20:51:22
I am getting results
M 2020-11-06 20:51:43
28/5000
artisan migration not working
sw_AliReZa 2020-11-06 21:06:43
M 2020-11-06 20:51:43
28/5000
artisan migration not working
config database connection with name mysql , because Table migrations use it or Change Connection of table migration
M 2020-11-06 21:09:14
Schema::connection(‘DB_001’)->create(‘users’, function (Blueprint $table) {
M 2020-11-06 21:09:24
yes changed but not work
2020-11-06 21:25:53
What about port??
M 2020-11-06 21:27:39
3307
M 2020-11-06 21:27:49
port true
2020-11-06 21:30:50
Is that correct in your local server
M 2020-11-06 21:31:36
2020-11-06 21:30:50
Is that correct in your local server
yes
2020-11-06 21:33:42
M 2020-11-06 19:38:02
‘DB_001’ => [
‘driver’ => ‘mysql’,
‘url’ => env(‘DATABASE_URL’),
‘host’ => env(‘DB_HOST_001’, ‘127.0.0.1’),
‘port’ => env(‘DB_PORT_001’, ‘3307’),
‘database’ => env(‘DB_DATABASE_001’, ‘forge’),
‘username’ => env(‘DB_USERNAME_001’, ‘forge’),
‘password’ => env(‘DB_PASSWORD_001’, ”),
‘unix_socket’ => env(‘DB_SOCKET_001’, ”),
‘charset’ => ‘utf8mb4’,
‘collation’ => ‘utf8mb4_unicode_ci’,
‘prefix’ => ‘evbis_’,
‘prefix_indexes’ => true,
‘strict’ => true,
‘engine’ => null,
‘options’ => extension_loaded(‘pdo_mysql’) ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env(‘MYSQL_ATTR_SSL_CA’),
]) : [],
],
Here you given the username as forge and in .env as root
Ubamiller 2020-11-06 21:33:42
VimKanzo 2020-10-11 11:06:49
Hello guys, I’m having an issue insert response from an api into the db.
I assigned each value from the response into a variable and I dd the whole response and also each variable to see if truly there is a value and there is. Unfortunately, in the insert bit of the code, the data is not being inserted into the database.
I’m not sure what I’m what I’m doing wrong. Any help would really be appreciated. Cc @DesolatorMagno
DM let work on it
M 2020-11-06 21:34:12
2020-11-06 21:33:42
Here you given the username as forge and in .env as root
yes
2020-11-06 21:34:30
Give both as root
2020-11-06 21:35:25
and also the database name also
DesolatorMagno 2020-11-06 21:36:20
Show your database config in a pastebin
M 2020-11-06 21:37:32
env file content
M 2020-11-06 21:37:42
DB_CONNECTION_001=DB_001
DB_HOST_001=127.0.0.1
DB_PORT_001=3307
DB_DATABASE_001=evbis_db_001
DB_USERNAME_001=root
DB_PASSWORD_001=
M 2020-11-06 21:37:52
db username dbname password true
DesolatorMagno 2020-11-06 21:38:21
Config database.php
M 2020-11-06 21:38:26
config database file
2020-11-06 21:38:30
Send snapshot of database.php
M 2020-11-06 21:38:36
‘DB_001’ => [
‘driver’ => ‘mysql’,
‘url’ => env(‘DATABASE_URL’),
‘host’ => env(‘DB_HOST_001’, ‘127.0.0.1’),
‘port’ => env(‘DB_PORT_001’, ‘3307’),
‘database’ => env(‘DB_DATABASE_001’, ‘forge’),
‘username’ => env(‘DB_USERNAME_001’, ‘forge’),
‘password’ => env(‘DB_PASSWORD_001’, ”),
‘unix_socket’ => env(‘DB_SOCKET_001’, ”),
‘charset’ => ‘utf8mb4’,
‘collation’ => ‘utf8mb4_unicode_ci’,
‘prefix’ => ‘evbis_’,
‘prefix_indexes’ => true,
‘strict’ => true,
‘engine’ => null,
‘options’ => extension_loaded(‘pdo_mysql’) ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env(‘MYSQL_ATTR_SSL_CA’),
]) : [],
],
DesolatorMagno 2020-11-06 21:38:47
I have like 10 minutes thinking that you are trolling.
DesolatorMagno 2020-11-06 21:39:15
And each message just make me more sure of it
2020-11-06 21:39:16
DesolatorMagno 2020-11-06 21:38:47
I have like 10 minutes thinking that you are trolling.
Exactly
M 2020-11-06 21:39:21
If this problem is solved, I think it will be useful for many people. Especially in multi-db use
2020-11-06 21:40:13
So you are using Multi db ahh??
M 2020-11-06 21:40:25
I’m not a troll, my English is not good I from Turkey
M 2020-11-06 21:40:51
23/5000
sorry you think that
2020-11-06 21:40:52
Send snapshot of database.php
DesolatorMagno 2020-11-06 21:41:05
If you are not, them you are really good at looking like 1.
M 2020-11-06 21:41:56
DesolatorMagno 2020-11-06 21:41:05
If you are not, them you are really good at looking like 1.
9/5000
I did not understand
DesolatorMagno 2020-11-06 21:42:48
How bad can be someone in english to confuse “send a snapshot of the entire file” with “Copy and paste the same portion of the file that you have share at least 5 times”?
M 2020-11-06 21:43:41
I just started learning Laravel
2020-11-06 21:44:40
Change the database name and username with the orginal db name and username as root
M 2020-11-06 21:44:53
DesolatorMagno 2020-11-06 21:42:48
How bad can be someone in english to confuse “send a snapshot of the entire file” with “Copy and paste the same portion of the file that you have share at least 5 times”?
You are right. My English is not good. I often use translate. Soryyπ
Ubamiller 2020-11-06 21:45:25
If you are having issues as regards Laravel I will be available to help from tomorow
M 2020-11-06 21:46:24
Ubamiller 2020-11-06 21:45:25
If you are having issues as regards Laravel I will be available to help from tomorow
Thank you friend I am very happy
2020-11-06 21:47:07
2020-11-06 21:44:40
Change the database name and username with the orginal db name and username as root
Do this and run artisan migrate
M 2020-11-06 21:48:10
2020-11-06 21:47:07
Do this and run artisan migrate
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3307
DB_DATABASE=evbis
DB_USERNAME=root
DB_PASSWORD=
M 2020-11-06 21:48:50
I changed it this way it works
but I am having trouble using multiple databases
DesolatorMagno 2020-11-06 21:51:14
Try config(‘database.conections’) using tinker
β prev | next β