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
language: php | |
php: | |
- 7.0 | |
- 7.1 | |
before_script: | |
- travis_retry composer self-update | |
- travis_retry composer install --prefer-source --no-interaction --dev |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.5/phpunit.xsd" | |
bootstrap="./vendor/autoload.php" | |
forceCoversAnnotation="false" | |
beStrictAboutCoversAnnotation="true" | |
beStrictAboutOutputDuringTests="true" | |
beStrictAboutTodoAnnotatedTests="true" | |
verbose="true" | |
> |
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
## ===================================================================================================================== | |
## Base Path | |
## ===================================================================================================================== | |
## The base path that will be prepended to all files, excluding migrations and seeders. | |
## Defaults to /app | |
# BASE_PATH=/src | |
## ===================================================================================================================== | |
## Base Namespace |
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
name: <name> | |
recipe: laravel | |
config: | |
via: apache | |
webroot: public | |
php: '5.4' | |
proxy: | |
appserver: | |
- <site>.lndo.site |
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
name: <name> | |
recipe: laravel | |
config: | |
via: apache | |
webroot: public | |
php: '5.6' | |
proxy: | |
appserver: | |
- <site>.lndo.site |
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
name: <name> | |
recipe: laravel | |
config: | |
via: apache | |
webroot: public | |
php: '7.2' | |
proxy: | |
appserver: | |
- <site>.lndo.site |
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
SELECT | |
table_schema as `Database`, | |
table_name AS `Table`, | |
round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB` | |
FROM information_schema.TABLES | |
WHERE table_schema = database() | |
ORDER BY (data_length + index_length) DESC; |
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
name: <name> | |
recipe: laravel | |
config: | |
via: apache | |
webroot: public | |
php: '7.1' | |
proxy: | |
appserver: | |
- <site>.lndo.site |
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
UPDATE http_redirects_new | |
SET redirect_url = trim(trailing '?' FROM redirect_url) | |
WHERE redirect_url LIKE '%?' |
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
<?php | |
// you should be escaping the values you pass to the SQL query | |
if (! empty($first_name)) { | |
$sql = "UPDATE `user` SET `u_first` = $first_name WHERE `id`='$uid' and u_first IS NOT NULL;"; | |
// execute etc .. | |
} | |
// then you will need to do the same for the other fields |