Laravel Application Structure

Application Structure

app − This directory contains the core code of the application.
bootstrap − This directory contains the application bootstrapping script.
config − This directory contains configuration files of application.
database − This folder contains your database migration and seeds.
public − This is the application’s document root. It starts the Laravel application. It also contains the assets of the application like JavaScript, CSS, Images, etc.
resources − This directory contains raw assets such as the LESS & Sass files, localization and language files, and Templates that are rendered as HTML.
storage − This directory contains App storage, like file uploads etc. Framework storage (cache), and application-generated logs.
test − This directory contains various test cases.
vendor − This directory contains composer dependencies.

App Directory

  • Console − All the artisan commands are stored in this directory.
  • Events − This directory stores events that your application can raise. Events may be used to alert other parts of your application that a given action has occurred, providing a great deal of flexibility and decoupling.
  • Exceptions − This directory contains your application’s exception handler and is also a good place to stick any exceptions thrown by your application.
  • Http − This directory contains your controllers, filters, and requests.
  • Jobs − This directory contains the queueable jobs for your application.
  • Listeners − This directory contains the handler classes for your events. Handlers receive an event and perform logic in response to the event being fired. For example, a UserRegistered event might be handled by a SendWelcomeEmail listener.
  • Policies − This directory contains various policies of the application
  • Providers − This directory contains various service providers.

How to Add a Header Widget in WordPress

We can simply add the header widget to  WordPress website by modifying to pages in the website. For Adding header widget we need to modify the functions.php file and header.php file in the wordpress

Path for the files

function.php wp-content/themes/{theme name }/ function.php
header.php wp-content/themes/{theme name }/ header.php

Modifying the file

Step 1 : Add the below code to function.php it’s declaring the widget into our WordPress website header section

function wpb_widgets_init() {
register_sidebar( array(
'name' => 'Header Widget',
'id' => 'header-widget',
'before_widget' => '<div class="hw-widget">',
'after_widget' => '</div>',
'before_title' => '<h2 class="hw-title">',
'after_title' => '</h2>',
) );
add_action( 'widgets_init', 'wpb_widgets_init' );

Step 2 : Calling the declared widget in the theme.

if ( is_active_sidebar( 'header-widget' ) ) : ?>
    <div id="header-widget-area" class="hw-widget widget-area" role="complementary">
	<?php dynamic_sidebar( 'header-widget' ); ?>
<?php endif; ?>

Modifying the Widget

Now you can modify the widget from the WordPress Dash Board

WordPress Visual Composer loading slowly

If your Visual Composer loading slowly this will be helpful to you to solve the issue, open your wp-config.php file. (You can find it at the root directory of your WordPress installation) using a text editor.
Now, paste the following codes:

define( 'AUTOSAVE_INTERVAL', 180 ); // Seconds

Just above of the /* That’s all, stop editing! Happy blogging. */ line.
If 180 not resolves, then add 240, 360 etc & check.
Hope this helps you