Before start the installation process, make sure you meet the following prerequisites:
- A Windows 10 operating system with WSL 2 support.
- WSL 2 enabled.
- Ubuntu 22.04 installed on WSL 2.
Installing Laravel in a domain subfolder can be useful in certain situations, although it is not officially supported by Laravel creators. In this instruction, I will describe how to configure Laravel 10 in a subfolder and additional tools such as Livewire v3.
| image: atlassian/default-image:2 | |
| pipelines: | |
| branches: | |
| master: | |
| - step: | |
| name: Deploy to Production | |
| deployment: production | |
| script: |
Special thanks to Carwin Young (Github @carwin) whose docs this is based on
This is a guide for formatting Sass stylesheets, it's goals are:
| /** | |
| * Generate a CSV of all the routes | |
| */ | |
| Route::get('r', function() | |
| { | |
| header('Content-Type: application/excel'); | |
| header('Content-Disposition: attachment; filename="routes.csv"'); | |
| $routes = Route::getRoutes(); | |
| $fp = fopen('php://output', 'w'); |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
Run php -i and copy the output of the following command and paste it on https://xdebug.org/wizard.php.
Follow the instructions there to install xDebug.
Example:
Download xdebug-2.6.0.tgz: wget http://xdebug.org/files/xdebug-2.6.0.tgz
Unpack the downloaded file with tar -xvzf xdebug-2.6.0.tgz
Zach Caceres
Javascript does not have the typical 'private' and 'public' specifiers of more traditional object oriented languages like C# or Java. However, you can achieve the same effect through the clever application of Javascript's function-level scoping. The Revealing Module pattern is a design pattern for Javascript applications that elegantly solves this problem.
The central principle of the Revealing Module pattern is that all functionality and variables should be hidden unless deliberately exposed.
Let's imagine we have a music application where a musicPlayer.js file handles much of our user's experience. We need to access some methods, but shouldn't be able to mess with other methods or variables.
https instead of http