|

Automated Deployment of Laravel Project

In this article I would like to share my approach to automated deployment of a Laravel project. I have been successfully using this approach for my side projects. In this article I will share Laravel project deployment on Linux (Digital Ocean) server. In a nutshell deploying Laravel project consists of “building” it (installing composer dependencies,…

|

Adding Email Headers in Laravel Application

Adding email headers in Laravel application is quite simple. SwiftMessage can be customized using withSwiftMessage method of Mailable base class: https://laravel.com/docs/8.x/mail#customizing-the-swiftmailer-message However you have to remember to do it every time you create a new “mailable” class. Some mail APIs require you to put a special header each time you send an email. In this…

WebSocket is closed before the connection is established

I have been using great package by Beyondcode laravel-websockets. Recently I tried to connect to the websocket server in a new application and got the following error “failed: WebSocket is closed before the connection is established”. Strangely enough this error was manifested in Chrome and not in Firefox. After digging a little bit I found…