This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#AuthType Basic | |
#AuthName "My Protected Area" | |
#AuthUserFile /path/to/.htpasswd | |
#Require valid-user | |
Options -Indexes | |
AddOutputFilterByType DEFLATE application/json | |
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE text/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var statusMessages = [ | |
'200': 'OK', | |
'201': 'Created', | |
'200': 'OK', | |
'201': 'Created', | |
'202': 'Accepted', | |
'203': 'Non-Authoritative Information', | |
'204': 'No Content', | |
'205': 'Reset Content', | |
'206': 'Partial Content', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$statusMessages = [ | |
200 => 'OK', | |
201 => 'Created', | |
200 => 'OK', | |
201 => 'Created', | |
202 => 'Accepted', | |
203 => 'Non-Authoritative Information', | |
204 => 'No Content', | |
205 => 'Reset Content', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Original post on: https://medium.com/@theghostcoder/custom-laravel-valet-driver-61ede526861e | |
// Valet drivers are found at ~/.valet/Drivers | |
// You can create/edit Valet Drivers using Terminal with Nano/Vim; or | |
// Show hidden files on your Mac (See https://gist.github.com/markpng/f7ccccbe56acfa0746528e05443844e4) | |
// and use your favorite IDE. | |
class MyValetDriver extends ValetDriver | |
{ |