How to test Laravel Email is functioning.
- Testing e-mails in Laravel
- Sending a Laravel test email from the command line
- Mail – Laravel – The PHP Framework For Web Artisans
- How to test Laravel notification e-mail contents
- Testing Laravel emails
- Login to SSH with root privilege.
- Go to the laravel folder and run
php artisan tinker
- Now use the Mail facade to send a quick test email. Make sure to change your email. Replace myemailaddress@gmail.com with yours.
Mail::raw('Hello Laravel World!', function($msg) {$msg->to('myemailaddress@gmail.com')->subject('Laravel Test Email'); });
- Its done! Check your email inbox.
How to set up Hestia on Ubuntu 20.04 LTS & 22.04 LTS
Step 1: Log in
Step 2: Update exist system
apt update && apt upgrade -y
Step 3: Download
Download the installation script for the latest release:
wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh
If the download fails due to an SSL validation error, please be sure you’ve installed the ca-certificate package on your system – you can do this with the following command:
apt-get update && apt-get install ca-certificates
Step 4: Run
To begin the installation process, simply run the script and follow the on-screen prompts:
bash hst-install.sh
You will receive a welcome email at the address specified during installation (if applicable) and on-screen instructions after the installation is completed to log in and access your server.
How to Reset Laravel Admin Password directly from the Database
Login to the server via SSH
Go to your Laravel directory
Type the follow command and enter
php artisan tinker
You will see a console start with >
Type in the command below
echo Hash::make('your-new-password-here')
Replace your-new-password-here with the actual password you want to use. This is in plain text.
Now press enter. You will get hashed password like below
$2y$10$GTP5DRX5IBTH9iCV7zeKHZeRC9EHP28Hs2LaHBGC9oZkTaHKfW⏎
Copy the above output without ⏎
$2y$10$GTP5DRX5IBTH9iCV7zeKHZeRC9EHP28Hs2LaHBGC9oZkTaHKfW
Paste it in your database password field.
Now your-new-password-here will be your new password.
How to create su user on Linux
- First add the user, run:
sudo adduser <UserNameHere>
- Add the user to sudo group by typing the command in terminal for Ubuntu version 12.04 and above:
sudo adduser <UserNameHere> sudo
- In an older version of Ubuntu (version 12.04 and older), run:
sudo adduser <UserNameHere> admin
- Verify it:
id <UserNameHere>
- « Previous Page
- 1
- …
- 11
- 12
- 13
- 14
- 15
- …
- 90
- Next Page »