Could you please tell me how to sent email in laraveL?

|
2020-11-06 00:56:32
R u using core php?
Mani34984 2020-11-06 02:22:31
laravel_discuss-58138.jpg

Mani34984 2020-11-06 02:22:31
laravel_discuss-58137.jpg

Mani34984 2020-11-06 02:22:57
Doesn’t work, any help appreciated
Siberfx 2020-11-06 02:36:35
Use rawQuery instead of select static
Sunilk16 2020-11-06 07:47:17
2020-11-06 00:56:32
R u using core php?

Yes

Chi_Thian 2020-11-06 09:56:12
Hello , Could you please tell me how to sent email in laraveL ?and how to dubug the error the email that fail to sent ?
Moses Ejim 2020-11-06 10:30:04
Chi_Thian 2020-11-06 09:56:12
Hello , Could you please tell me how to sent email in laraveL ?and how to dubug the error the email that fail to sent ?

If you are using a laravel queue to send the email, you can check the failed_jobs table for the error. Else, the error should appear on the browser

Chi_Thian 2020-11-06 11:24:22
Moses Ejim 2020-11-06 10:30:04
If you are using a laravel queue to send the email, you can check the failed_jobs table for the error. Else, the error should appear on the browser

yes thanks you , let me check first !

TheFeLuM 2020-11-06 12:17:22
laravel_discuss-58165.jpg
hi !! i have a issue trying to set a product and attach product id to user id and got error in method attach
TheFeLuM 2020-11-06 12:17:33
laravel_discuss-58166.jpg

TheFeLuM 2020-11-06 12:17:54
laravel_discuss-58167.jpg

TheFeLuM 2020-11-06 12:18:21
laravel_discuss-58168.jpg

Mikedee 2020-11-06 12:36:27
Greeting all
I have two similar collections
Foreach($ts as $t, $by as $b)

I wish to loop over a table with condition if it belongs to collection $t highlight with green color and else the other collection highlight blue color
How can i achieve this kindly

badralwattar 2020-11-06 12:53:44
Any one know a free online tool for Database diagrams?
And supports group access
profsr123 2020-11-06 12:56:57
<input style=”float: right; border:solid blue 1px;” class=”form-control” type=”text” id=”myInput” onkeyup=”myFunction()” placeholder=”Search for Products..” title=”Type in a product”>
profsr123 2020-11-06 12:57:18
how to align the search box to only right
Sunilk16 2020-11-06 13:04:13
profsr123 2020-11-06 12:57:18
how to align the search box to only right

Add in div

TheFeLuM 2020-11-06 16:46:34
laravel_discuss-58176.jpg

TheFeLuM 2020-11-06 16:46:47
laravel_discuss-58177.jpg

TheFeLuM 2020-11-06 16:47:10
any suggestion?
TheFeLuM 2020-11-06 17:01:26
blind, thx u !!
M 2020-11-06 19:33:17
How to select php artisan migrate database
M 2020-11-06 19:33:49
laravel_discuss-58188.jpg

2020-11-06 19:35:51
config the database in env file
2020-11-06 19:36:09
and also in app/database.php
2020-11-06 19:36:29
After that run php artisan migrate
M 2020-11-06 19:37:36
env file config
M 2020-11-06 19:37:47
DB_CONNECTION_001=mysql
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 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’),
]) : [],
],
M 2020-11-06 19:39:15
this sample it is work DB::connection(‘DB_001’)->table(‘modul’)->get();
M 2020-11-06 19:39:27
but not work artisan migrate
sw_AliReZa 2020-11-06 19:42:04
M 2020-11-06 19:39:27
but not work artisan migrate

add ->connection(‘DB_001’) to ur migration , like Schema::connection(‘DB_001’)->create(‘table_one’, function (Blueprint $table) {

M 2020-11-06 19:42:42
public function up()
{
Schema::connection(‘DB_001’)->create(‘users’, function (Blueprint $table) {
$table->id();
$table->string(‘name’);
$table->string(’email’)->unique();
$table->timestamp(’email_verified_at’)->nullable();
$table->string(‘password’);
$table->rememberToken();
$table->timestamps();
});
}
M 2020-11-06 19:42:58
22/5000
I tried the room is not working
M 2020-11-06 19:44:02
this error
InvalidArgumentException

Database connection [mysql] not configured.

req98 2020-11-06 19:59:16
.env
M 2020-11-06 20:00:10
DB_CONNECTION_001=mysql
DB_HOST_001=127.0.0.1
DB_PORT_001=3307
DB_DATABASE_001=evbis_db_001
DB_USERNAME_001=root
DB_PASSWORD_001=
req98 2020-11-06 20:09:39
Do
Config cache
Then
Migrate
M 2020-11-06 20:11:46
php artisan cache:clear
M 2020-11-06 20:11:57
but nor work migrate
req98 2020-11-06 20:20:02
M 2020-11-06 20:11:57
but nor work migrate

What message

M 2020-11-06 20:26:17
laravel_discuss-58212.jpg

M 2020-11-06 20:26:27
this message
DesolatorMagno 2020-11-06 20:31:43
M 2020-11-06 20:00:10
DB_CONNECTION_001=mysql
DB_HOST_001=127.0.0.1
DB_PORT_001=3307
DB_DATABASE_001=evbis_db_001
DB_USERNAME_001=root
DB_PASSWORD_001=

Here you show connection MySQL but in the config you show connection db_001

M 2020-11-06 20:33:24
DesolatorMagno 2020-11-06 20:31:43
Here you show connection MySQL but in the config you show connection db_001

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=

DesolatorMagno 2020-11-06 20:34:36
I could make a db_connection_007 and that would mean sh1t
DesolatorMagno 2020-11-06 20:35:19
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’),
]) : [],
],

At the start of here should be a key that hold the db connection to use

M 2020-11-06 20:37:02
DesolatorMagno 2020-11-06 20:34:36
I could make a db_connection_007 and that would mean sh1t

‘DB_001’ => [
‘driver’ => ‘mysql’,
‘url’ => env(‘DATABASE_URL’),
‘host’ => env(‘DB_HOST_001’, ‘127.0.0.1’),

DesolatorMagno 2020-11-06 20:37:19
…….
|