We learning how to send Notifications with management to queues using Redis. In this tutorial we will use the Notifications created previously in the previous tutorials.

Step 1 Install Redis

In first step, we install Redis for this I let you two great tutorials for MacOsx and Linux.



Install php extension on Ubuntu

sudo apt install php-redis

Install php extension MacOsx

brew install php-redis

Step 2 Config environment

In this step we will config our .env file.


Step 3 Install Redis driver

We need install Redis driver in to…

We will learn to send Slack notifications with Laravel 8

Photo by Scott Webb on Unsplash

Step 1. Install Slack notification channel

Before you can send notifications via Slack, you must install the Slack notification channel via Composer:

composer require laravel/slack-notification-channel

Step 2. Create and configure Notification

In Laravel, each notification is represented by a single class that is typically stored in the app/Notifications directory. Don't worry if you don't see this directory in your application - it will be created for you when you run the make:notification Artisan command:

php artisan make:notification SendNotification

Next configure file app/Notification/SendNotification

namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
use Illuminate\Notifications\Messages\SlackMessage;
class SendNotification extends Notification

We learning to generate SSH key in macOS Big Sur, create deploy key in GitLab that clone repository in our server with SSH.

Photo by Christopher Gower on Unsplash

Step 1. Generate Key

In first step, we require to get key using bellow command, So open your terminal or command prompt and run bellow command:

ssh-keygen -t rsa

Show the created key

cat ~/.ssh/id_rsa.pub

Copy the key

Increase the size of an ABS volume in 3 steps

Photo by benjamin lehman on Unsplash

1. Create Amazon EBS snapshots

2. Modify an EBS volume using Elastic Volumes (console)

Use the following procedure to modify an EBS volume.

To modify an EBS volume using the console

Create automatic deploy with GitLab CI in 10 minutes

Step 1. Add public key on GitLab profile

Add the server’s public key to the GitLab profile's public keys. This is done by copying in the contents of cat ~/.ssh/id_rsa.pub and pasting them to https://gitlab.com/profile/keys

Step 2. Add public key to authorized keys

Add the server’s public key to the server’s authorized keys. Inside the server, this is done by simply running this line:

cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

Step 3. Add private key on GitLab project

Add the server’s private key to the Gitlab project variables. This is done by copying in the contents of cat ~/.ssh/id_rsa and pasting them to https://gitlab.com/username/project/-/settings/ci_cd with name SSH_PRIVATE_KEY

Step 4. Create .gitlab-ci-yml file

Create .gitlab-ci.yml file into root project and put bellow code:

We learning to create a authentication system with API Laravel Authentication Passport OAuth

Step 1. Install Laravel

In first step, we require to get fresh Laravel application using bellow command, So open your terminal or command prompt and run bellow command:

laravel new auth

Step 2. Install Laravel Passport Package

Laravel Passport provides a full OAuth2 server implementation for your Laravel application in a matter of minutes.

composer require laravel/passport

Step 3. Run migration

The Passport migrations will create the tables your application needs to store clients and access tokens, before this you should have already created and configured the connection to your database.

php artisan migrate

Step 4. Generate keys

This command will create the encryption keys…

Configure your development environment on Mac in minutes

Step 1. Install Homebrew

In first step, we require to get Homebrew using bellow command, So open your terminal or command prompt and run bellow command

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Step 2. Install PHP

Install PHP 7.4 using Homebrew via

brew install php

Step 3. Install MySQL

Install MySQL 5.7 using Homebrew via

brew install mysql@5.7

Once MySQL has been installed, you may start it using the bellow command

brew services start mysql@5.7

Step 4. Install Composer

Install Composer run bellow command

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php

The demonstration of the tutorial series “Create Scaffold with Laravel 5.7” is ready, I hope you use it to develop your next projects, check the documentation and collaborate in the…

In this part we will add to profile module the feature change password of Auth user.

Table of Contents

Add Routes

Into file routes/profile/profile.php add the next routes

Route::middleware('auth')->group(function () {
Route::group(['namespace' => 'Profile'], function() {
// view
Route::view('/profile', 'profile.profile');
Route::view('/password', 'profile.password');
// api
Route::group(['prefix' => 'api/profile'], function() {


Update Controller

Into app/Http/Controllersr/Pofile/ProfileController.php file add the next code

<?phpnamespace App\Http\Controllers\Profile;use Illuminate\Http\Request;
use App\Http\Controllers\Controller…

Alfredo Barron

💾 Full Stack Web Developer 🛵 Founder at #Tráeme 💻 Freelancer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store