Laravel-adminlte: ISSUE: publishing views does not create view files (Laraval 6)

Created on 28 Oct 2019  路  13Comments  路  Source: jeroennoten/Laravel-AdminLTE

Running

php artisan vendor:publish --provider="JeroenNotenLaravelAdminLteServiceProvider" --tag=views

does not create anything in resource/views/vendor as per docs.

Laravel Framework 6.4.0

"name": "jeroennoten/laravel-adminlte",
"version": "v2.0.2",

Most helpful comment

If you're using AdminLTE 3 with Laravel 6 you can use:

php artisan adminlte:install --only=main_views

All 13 comments

for me this returns the following in red: Unable to locate publishable resources.

The translations do publish though, so it is not an overall publishing problem.

It should be php artisan vendor:publish --provider="JeroenNoten\LaravelAdminLte\AdminLteServiceProvider" --tag=views

Looks like this was affected by this recent commit:
https://github.com/jeroennoten/Laravel-AdminLTE/pull/400

Please change readme.MD Now here

php artisan vendor:publish --provider="JeroenNoten\LaravelAdminLte\ServiceProvider" --tag=assets --force  

The readme.md is correct, look at here (master) or here (laravel6-adminlte2) with the new adminlte:install command.

Why use publish assets in installation for v5 and dont for v6))
```

  1. Installation
    2.1 - Laravel 5 (Package version 1.x)
    Require the package using composer:

composer require jeroennoten/laravel-adminlte "^1"
Publish the public assets:

php artisan vendor:publish --provider="JeroenNotenLaravelAdminLteServiceProvider" --tag=assets
The make:adminlte artisan command

This package ships with a make:adminlte command that behaves exactly like make:auth (introduced in Laravel 5.2) but replaces the authentication views with AdminLTE style views.

php artisan make:adminlte
This command should be used on fresh applications, just like the make:auth command

2.2 - Laravel 6.x (Package version 2.x)
Require the package using composer:

composer require jeroennoten/laravel-adminlte
Install the package using the command (For fresh laravel installations):

php artisan adminlte:install
You can use --basic to avoid authentication scaffolding installation

You can use --force to overwrite any file

You can also use --interactive to be guided through the process and choose what you want to install
```

I need use

php artisan vendor:publish --provider="JeroenNotenLaravelAdminLteAdminLteServiceProvider" --tag=assets

for publish assets for v6 when installations. dont when update

In which case do you want publishing the assets?

for me this returns the following in red: Unable to locate publishable resources.

The translations do publish though, so it is not an overall publishing problem.

I am also facing the same issue, did you find the solution?

Same here, I use Laravel 6.4.1,
when I execute the command it returns
Unable to locate publishable resources. then on the next line Publishing complete.,
that's weird, I need to change some of them

If you're using AdminLTE 3 with Laravel 6 you can use:

php artisan adminlte:install --only=main_views

In which case do you want publishing the assets?

Estou com o mesmo problema, n茫o esta publicando nada.
A vers茫o anterior est谩 funcionado corretamente.

is working fine on Laravel 6.4.
create an extended view file in
resource\view
and master file create in
vendor\jeroennoten\laravel-adminlte\resources\views
plz, check that path.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Shidersz picture Shidersz  路  4Comments

WillieOng-HK picture WillieOng-HK  路  4Comments

santiagoferraz picture santiagoferraz  路  5Comments

Shidersz picture Shidersz  路  4Comments

ahishamali10 picture ahishamali10  路  5Comments