Skip to content

Views and publishing

Views are registered under the lte3:: namespace.

DirectoryViews
layoutsapp, app-print, inc/begin, inc/end, inc/navbar, inc/sidebar, inc/sidebar-menu/example, inc/footer, inc/preloader, inc/options
partscontent-header, alerts, alerts/toastr, alerts/sweetalert, alerts/bootstrap, callouts, filter-wrap, filter-wrap2
componentsone view per field, see Fields overview
authapp, login, register, forgot-password, reset-password
examplesdemo pages of /lte3

What the layouts and parts do: Layout and pages.

Laravel looks for lte3::<view> in resources/views/vendor/lte3/<view>.blade.php first. Publish the whole set or one directory and edit the copy:

Terminal window
php artisan vendor:publish --tag=lte3-view-layouts
php artisan vendor:publish --tag=lte3-view-components
php artisan vendor:publish --tag=lte3-views # everything

A single view can be overridden without publishing the rest: create the file at the same path, e.g. resources/views/vendor/lte3/layouts/inc/sidebar-menu/example.blade.php for your own menu.

To change one field for the whole project, pointing its config entry to your own view is often simpler than overriding the package view — see Configuration.

public/vendor/lte3 must contain the package public directory: main.js, main.css, mb-blocks.js, mb-block.css, img/ and plugins/. Plugins shipped with the package (not with AdminLTE): datetimepicker, multidatespicker, magnific-popup, x-editable, select2-to-tree, bootstrap-treeview, jquery-sortable, pace and others in public/plugins.

A copy made with --tag=lte3-assets must be republished after updates:

Terminal window
php artisan vendor:publish --tag=lte3-assets --force

A symlink (Installation) needs nothing.