Open app/setup.php, find the after_setup_theme action and put add_theme_support('woocommerce'); inside the function.
Add the templates you want to override in resources/woocommerce:
theme
│
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| use Twilio\Rest\Client; | |
| class TwilioServiceProvider extends ServiceProvider | |
| { | |
| public function register() |
Configure PHP Lumen 5 HTTP Exception Handlers with common JSON responses.
Copy (replace) only the attached files to their respective directories. app/Exceptions/Handler.php and app/Http/Middleware/Authenticate.php
| FROM php:7.0.4-fpm | |
| RUN apt-get update && apt-get install -y libmcrypt-dev \ | |
| mysql-client libmagickwand-dev --no-install-recommends \ | |
| && pecl install imagick \ | |
| && docker-php-ext-enable imagick \ | |
| && docker-php-ext-install mcrypt pdo_mysql |
| <?php | |
| /** | |
| * Send a Message to a Slack Channel. | |
| * | |
| * In order to get the API Token visit: | |
| * | |
| * 1.) Create an APP -> https://api.slack.com/apps/ | |
| * 2.) See menu entry "Install App" | |
| * 3.) Use the "Bot User OAuth Token" |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |