Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ot-apollo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home3/achieve/public_html/knowledgebase/wp-includes/functions.php on line 6131

Warning: Cannot modify header information - headers already sent by (output started at /home3/achieve/public_html/knowledgebase/wp-includes/functions.php:6131) in /home3/achieve/public_html/knowledgebase/wp-includes/feed-rss2.php on line 8
Other – Knowledge https://knowledge.achieveee.com Wed, 20 Sep 2017 10:08:12 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 https://knowledge.achieveee.com/wp-content/uploads/2016/05/cropped-favicon-32x32.png Other – Knowledge https://knowledge.achieveee.com 32 32 Use Proxy Settings in Laravel .env https://knowledge.achieveee.com/knowledge_base/use-proxy-settings-in-laravel-env/?utm_source=rss&utm_medium=rss&utm_campaign=use-proxy-settings-in-laravel-env https://knowledge.achieveee.com/knowledge_base/use-proxy-settings-in-laravel-env/#respond Wed, 20 Sep 2017 10:08:12 +0000 http://knowledge.achieveee.com/?post_type=knowledge_base&p=2535 Use the following parameters in .env file:

HTTPS_PROXY={http/https://}PROXY_USER:PROXY_PWD@PROXY:PROXY_PORT
(Combination of Proxy Address:Proxy Password@Proxy Address with port, don’t include http/https)

PROXY=xxxxxx (Proxy Name)
PROXY_PORT=xxxx (Proxy Port)
PROXY_USER=xxxxxxxxx (Proxy User Name)
PROXY_PWD=xxxxxxxxx (Proxy User Password)
PROXY_TYPE=CURLPROXY_HTTP
SSL_VERIFYPEER=true (true if SSL, else false)

Include actual values in HTTPS_Proxy

]]>
https://knowledge.achieveee.com/knowledge_base/use-proxy-settings-in-laravel-env/feed/ 0
Change public directory in Laravel 5 https://knowledge.achieveee.com/knowledge_base/change-public-directory-in-laravel-5/?utm_source=rss&utm_medium=rss&utm_campaign=change-public-directory-in-laravel-5 https://knowledge.achieveee.com/knowledge_base/change-public-directory-in-laravel-5/#respond Mon, 31 Jul 2017 13:52:11 +0000 http://knowledge.achieveee.com/?post_type=knowledge_base&p=2532 Just 3 steps are required to change the public directory:

  1. Cut all the files and folders in public directory and paste it to root folder
  2. Update the index.php as below:
    <?php
    
    /**
     * Laravel - A PHP Framework For Web Artisans
     *
     * @package  Laravel
     * @author   Taylor Otwell <taylorotwell@gmail.com>
     */
    
    /*
    |--------------------------------------------------------------------------
    | Register The Auto Loader
    |--------------------------------------------------------------------------
    |
    | Composer provides a convenient, automatically generated class loader for
    | our application. We just need to utilize it! We'll simply require it
    | into the script here so that we don't have to worry about manual
    | loading any of our classes later on. It feels nice to relax.
    |
    */
    
    require __DIR__.'/bootstrap/autoload.php';
    
    /*
    |--------------------------------------------------------------------------
    | Turn On The Lights
    |--------------------------------------------------------------------------
    |
    | We need to illuminate PHP development, so let us turn on the lights.
    | This bootstraps the framework and gets it ready for use, then it
    | will load up this application so that we can run it and send
    | the responses back to the browser and delight our users.
    |
    */
    
    $app = require_once __DIR__.'/bootstrap/app.php';
    
    // set the public path to this directory
    $app->bind('path.public', function() {
    	return __DIR__;
    });
    
    /*
    |--------------------------------------------------------------------------
    | Run The Application
    |--------------------------------------------------------------------------
    |
    | Once we have the application, we can handle the incoming request
    | through the kernel, and send the associated response back to
    | the client's browser allowing them to enjoy the creative
    | and wonderful application we have prepared for them.
    |
    */
    
    $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
    
    $response = $kernel->handle(
    	$request = Illuminate\Http\Request::capture()
    );
    
    $response->send();
    
    $kernel->terminate($request, $response);
  3. Update the elixir parameters in gulpfile.js:
    elixir.config.publicDir = '';
    elixir.config.publicPath = '';
    
    elixir(function(mix) {
    	mix.sass('app.scss');
    });

P.S.: Always use ‘url()’ function for every assets like images, css, js
You can also use, url(elixir(‘css/all.css’))

]]>
https://knowledge.achieveee.com/knowledge_base/change-public-directory-in-laravel-5/feed/ 0
Upload local image from TinyMCE https://knowledge.achieveee.com/knowledge_base/upload-local-image-from-tinymce/?utm_source=rss&utm_medium=rss&utm_campaign=upload-local-image-from-tinymce https://knowledge.achieveee.com/knowledge_base/upload-local-image-from-tinymce/#respond Mon, 14 Nov 2016 14:16:13 +0000 http://knowledge.achieveee.com/?post_type=knowledge_base&p=2484 “jbimages” plugin does that magic of uploading your local image to server from TinyMCE. To setup the plugin follow the below steps:

  1. Download “jbimages” plugin from http://justboil.me/
  2. Unzip it into TinyMCE’s plugins folder
  3. Edit config.php file found in plugins/jbimages
  4. Set $config[‘img_path’] as per your requirement. Eg: ‘images/blog’
  5. Activate jbplugins in script by following code. Don’t forget to set relative_urls: false
    <script type="text/javascript">
    
    tinymce.init({
      selector: "textarea",
    
      // ===========================================
      // INCLUDE THE PLUGIN
      // ===========================================
    
      plugins: [
        "advlist autolink lists link image charmap print preview anchor",
        "searchreplace visualblocks code fullscreen",
        "insertdatetime media table contextmenu paste jbimages"
      ],
    
      // ===========================================
      // PUT PLUGIN'S BUTTON on the toolbar
      // ===========================================
    
      toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image jbimages",
    
      // ===========================================
      // SET RELATIVE_URLS to FALSE (This is required for images to display properly)
      // ===========================================
    
      relative_urls: false
    
    });
    
    </script>

    Just include “jbimages” in plugin and toolbar method to activate.

P.S.: Please keep the image upload path as writable.

 

]]>
https://knowledge.achieveee.com/knowledge_base/upload-local-image-from-tinymce/feed/ 0