Laravel Blade Include Relative

screenshot of Laravel Blade Include Relative

Allows to include blade template with relative path based on current view.

Overview

Laravel Blade Include Relative is an innovative package designed to enhance the experience of working with Blade templates in Laravel. This tool allows developers to include sub-views using relative paths based on the current view, streamlining the process of template management in your applications. By simplifying how sub-views are referenced, it promotes clean and efficient coding practices.

The installation and usage of this package are straightforward, requiring just a simple Composer installation and a few commands to clear the view cache. With Laravel Blade Include Relative, developers can focus on creating dynamic web applications without the hassle of complicated view pathing.

Features

  • Relative Path Inclusion: Easily include Blade templates using relative paths from the current view to enhance modularity.
  • Simple Installation: Quick installation through Composer, making it easy to integrate into existing projects.
  • Clear View Cache: The package emphasizes the importance of clearing the view cache for optimal performance before usage.
  • Streamlined Sub-view Management: Manage your sub-views efficiently, allowing for improved code organization within your Blade templates.
  • Error Handling: If a view has been previously loaded and is no longer valid, the last known valid view will still be included, minimizing the risk of application errors.
  • Magic Display: Experience seamless integration with Laravel's templating engine, allowing for a more magical display of your views.