Posts

Showing posts from June, 2022

Send Email through Laravel

Image
  Send Email through Laravel First create a Laravel project           composer create-project laravel/laravel send-email Make configurations in the .env file Create Mail           php artisan make:mail MyTestMail The mail file will create in the app/Mail/MyTestMail.php Update the mail file as below Create a blade file and add the content which you need to send through the email Call the mail inside a controller Create a controller and import following           use App\Mail\MyTestMail;           use Mail; Call the mail and send it to the relevant user Run the project

PayPal Integration with Laravel

Image
  PayPal Integration with Laravel First create a Laravel project           composer create-project laravel/laravel paypal Create a database and connect it with the project Run below command to create payment table           php artisan make:migration create_payments_table Go to migration file and add following fields Run again php artisan migrate Run php artisan make:model Payment Run php artisan make:controller PaymentController Go to web.php and add following routes Go to https://developer.paypal.com/home Create a PayPal developer account. Add the client id and secret key to the .env file Run below code in terminal           composer require league/omnipay omnipay/paypal Add the following code to the PaymentController Create a blade file as payment.blade.php Create a simple form Run the project