Skip to content

Instantly share code, notes, and snippets.

@mikeqci
mikeqci / gist:ce932d3f1c88ff50c1c5ea16dd5c9276
Last active May 2, 2023 18:17
Install MSSQL support on Homestead (ubuntu 20.04 with PHP 8).
# use homestead ssh to enter homestead
# this does NOT install a SQL server... it enables the MSSQL PDO so you can connect to one
# switch to php 8.1 by running
php81
#credit: i stole some of this from conandrum https://github.com/microsoft/msphpsql/issues/1145
sudo su
@mikeqci
mikeqci / gist:0f0464c22ed85af8c267799835941f12
Last active November 2, 2022 16:08
Deploy Laravel 8 on Azure App Service and Connect it to a SQL Server Database
# Step 1: create an Azure App Service resource
# Step 2: in Azure, go to Configuration, add your .env params to the Application Settings
# PRO TIP: The format for Advanced Edit (which no one f***ing tells you) is
# [
# {
# "name": "APP_DEBUG",
# "value": "true",
# "slotSetting": false
# },