This file contains hidden or 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
| /* Generate unique values with the UUID() function. */ | |
| UPDATE table SET column = UUID(); | |
| /* Optionally strip the hyphens from the values. */ | |
| UPDATE table SET column = REPLACE(UUID(), '-', ''); |
This file contains hidden or 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
| // Taken from: https://laracasts.com/forum/88-how-do-you-handle-enums | |
| class OrderStatus implements Enum | |
| { | |
| const FRAUD = -2; | |
| const CANCELLED = -1; | |
| const UNPAID = 0; | |
| const RECEIVED = 1; | |
| const PARTIALLY_SHIPPED = 10; | |
| const SHIPPED = 20; |
This file contains hidden or 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
| Server { | |
| Port = 80 | |
| SourceRoot = /var/www/public/ | |
| } | |
| VirtualHost { | |
| * { | |
| Pattern = .* | |
| RewriteRules { | |
| * { |
This file contains hidden or 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
| #!/bin/bash | |
| docker stop $(docker ps -a -q) | |
| docker rm $(docker ps -a -q) | |
| docker rmi $(docker images -a -q) |
NewerOlder