jeroennoten / Laravel-AdminLTE

Easy AdminLTE integration with Laravel
MIT License
3.8k stars 1.08k forks source link

ISSUE: publishing views does not create view files (Laraval 6) #403

Closed alex-french closed 4 years ago

alex-french commented 4 years ago

Running

php artisan vendor:publish --provider="JeroenNoten\LaravelAdminLte\ServiceProvider" --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",

JustinRijsdijk commented 4 years ago

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.

REJack commented 4 years ago

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

alex-french commented 4 years ago

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

gimtonic commented 4 years ago

Please change readme.MD Now here

php artisan vendor:publish --provider="JeroenNoten\LaravelAdminLte\ServiceProvider" --tag=assets --force  
REJack commented 4 years ago

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

gimtonic commented 4 years ago

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

2. 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="JeroenNoten\LaravelAdminLte\ServiceProvider" --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 
gimtonic commented 4 years ago

I need use

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

for publish assets for v6 when installations. dont when update

resslinger commented 4 years ago

In which case do you want publishing the assets?

daksh-huma commented 4 years ago

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?

rtanx commented 4 years ago

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

cdr0y commented 4 years ago

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

php artisan adminlte:install --only=main_views

wpetian commented 4 years ago

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.

kiranajudiya commented 4 years ago

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.