Artisan commands
| Command | Description |
|---|---|
lte3:install | Copy the starter views into the project, publish assets, add a route |
lte3:link | Symlink AdminLTE and lte3 assets into public/vendor |
lte3:install
Section titled “lte3:install”Interactive. Asks:
- Dashboard slug (default
admin) — converted to snake case; the name of the views directory and the route file - Copy files or make symbolic links? — for the AdminLTE
distandplugins
Steps:
- Stops with a warning if
vendor/almasaeed2010does not exist (composer require almasaeed2010/adminlte) - Creates
public/vendor/adminlte(warns if it exists and continues) and copies or symlinksdistandpluginsinto it. Existing links are kept - Stops with a warning if
resources/views/<slug>already exists - Copies the package views
auth,examples,layouts,partsintoresources/views/<slug>and replaces'lte3::with'<slug>.in them. Only quoted view names are rewritten - Publishes
lte3-assets— a copy of the packagepublicintopublic/vendor/lte3 - Writes
routes/<slug>.phpwithRoute::view('<slug>', '<slug>.examples.home');and appendsrequire __DIR__ . '/<slug>.php';toroutes/web.php - Runs
storage:linkifpublic/storagedoes not exist
The route has no middleware of its own: it gets the middleware of routes/web.php (web). Add authentication before deploying, e.g. wrap the route file in Route::middleware('auth')->group(...).
Running the command again with another slug creates a second copy and appends one more require to routes/web.php.
lte3:link
Section titled “lte3:link”Not interactive. For each target that does not exist yet:
public/vendor/adminlte/distandpublic/vendor/adminlte/plugins→vendor/almasaeed2010/adminlte/...(warns if the package is not installed)public/vendor/lte3→ the packagepublicdirectory- runs
storage:linkifpublic/storagedoes not exist
The links are absolute. They break when the project is moved or deployed into another path; relative links are shown in Installation.
Publishing
Section titled “Publishing”| Tag | What |
|---|---|
lte3-config | config/lte3.php |
lte3-assets | public/vendor/lte3 (copy of the package public) |
lte3-views | all views → resources/views/vendor/lte3 |
lte3-view-components, lte3-view-layouts, lte3-view-parts, lte3-view-auth, lte3-view-examples | one directory of views |
php artisan vendor:publish --tag=lte3-view-componentsSee Views and publishing.