1
- ** IMPORTANT NOTE
** : This project is looking for a maintainer please email
[email protected] if you are interested.
2
-
3
1
# AdminLTE template Laravel 5 package
4
2
A Laravel 5 package that switch default Laravel scaffolding / boilerplate to AdminLTE template with Bootstrap 3.0 and Pratt Landing Page
5
3
@@ -66,7 +64,7 @@ brew install gnu-sed --with-default-names
66
64
```
67
65
68
66
This package assumes that you have in path your composer bin folder:
69
-
67
+
70
68
```
71
69
/YOUR_PATH_TO_HOME/.composer/vendor/bin
72
70
```
@@ -90,14 +88,17 @@ Please be sure to check you environment.
90
88
## Optional requirements
91
89
* [ Laravel menu] ( https://github.com/spatie/laravel-menu ) : only used with command adminlte: menu that replaces default adminlte menu with a menu with spatie/laravel-menu support.
92
90
91
+ ## Laravel 5.7
92
+
93
+ Compatible with Laravel 5.7.
93
94
94
95
## Laravel 5.6
95
96
96
- This package works smoothly with Laravel 5.6 with 6.0+ versions.
97
+ This package works smoothly with Laravel 5.6 with 6.0+ versions.
97
98
98
99
## Laravel 5.5
99
100
100
- This package now use new Laravel 5.5 feature Package Auto Discover.
101
+ This package now use new Laravel 5.5 feature Package Auto Discover.
101
102
102
103
## Laravel 5.4
103
104
@@ -116,8 +117,8 @@ Add admin-lte Laravel package with:
116
117
117
118
<pre >
118
119
composer require "acacha/admin-lte-template-laravel:4.*"
119
- </pre >
120
-
120
+ </pre >
121
+
121
122
To register the Service Provider edit ** config/app.php** file and add to providers array:
122
123
123
124
``` php
@@ -140,9 +141,9 @@ Publish files with:
140
141
141
142
``` php
142
143
php artisan vendor:publish --tag=adminlte --force
143
- ```
144
-
145
- Use force to overwrite Laravel Scaffolding packages. That's all! Open the Laravel project in your browser or homestead machine and enjoy!
144
+ ```
145
+
146
+ Use force to overwrite Laravel Scaffolding packages. That's all! Open the Laravel project in your browser or homestead machine and enjoy!
146
147
147
148
148
149
## Laravel 5.3
@@ -177,22 +178,22 @@ Add admin-lte Laravel package with:
177
178
178
179
<pre >
179
180
composer require "acacha/admin-lte-template-laravel:1.*"
180
- </pre >
181
-
181
+ </pre >
182
+
182
183
Register ServiceProvider editing ** config/app.php** file and adding to providers array:
183
184
184
185
<pre >
185
- // AdminLTE template provider
186
+ // AdminLTE template provider
186
187
Acacha\AdminLTETemplateLaravel\app\Providers\AdminLTETemplateServiceProvider::class,
187
188
</pre >
188
189
189
190
Publish files with:
190
191
191
192
<pre >
192
193
php artisan vendor:publish --force --provider="Acacha\AdminLTETemplateLaravel\app\Providers\AdminLTETemplateServiceProvider"
193
- </pre >
194
-
195
- Use force to overwrite Laravel Scaffolding packages. That's all! Open the Laravel project in your browser or homestead machine and enjoy!
194
+ </pre >
195
+
196
+ Use force to overwrite Laravel Scaffolding packages. That's all! Open the Laravel project in your browser or homestead machine and enjoy!
196
197
197
198
Note: use the following for Laravel <5.1 versions:
198
199
@@ -206,11 +207,11 @@ Note: use the following for Laravel <5.1 versions:
206
207
This package installs Laravel routes that you will not find them at routes.php file. The routes installed by package would be find at file:
207
208
208
209
https://github.com/acacha/adminlte-laravel/blob/master/src/Http/routes.php
209
-
210
+
210
211
A file included by AdminLTETemplateServiceProvider:
211
212
212
213
https://github.com/acacha/adminlte-laravel/blob/master/src/Providers/AdminLTETemplateServiceProvider.php
213
-
214
+
214
215
You can override this routes by changing order of ServiceProviders in config/app.php file so if you put:
215
216
216
217
``` php
@@ -226,9 +227,9 @@ Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class
226
227
Your routes in routes.php file will override default adminlte-laravel routes.
227
228
228
229
Also you can install manually the routes in routes.php file. Adminlte-laravel use same routes as Laravel make: auth command use, see:
229
-
230
+
230
231
https://github.com/laravel/framework/blob/5.2/src/Illuminate/Auth/Console/stubs/make/routes.stub
231
-
232
+
232
233
so you can add this lines to routes.php file:
233
234
234
235
``` php
@@ -237,7 +238,7 @@ Route::auth();
237
238
Route::get('/home', 'HomeController@index');
238
239
```
239
240
240
- And disable AdminLTETemplateServiceProvider in config/app.php file ( take into account that Adminte-laravel Facades and
241
+ And disable AdminLTETemplateServiceProvider in config/app.php file ( take into account that Adminte-laravel Facades and
241
242
custom commands will not be available).
242
243
243
244
See issue https://github.com/acacha/adminlte-laravel/issues/69 for more info
@@ -415,7 +416,7 @@ File /home/sergi/Code/AdminLTE/acacha/adminlte-laravel_test/database/seeds/Admin
415
416
User Sergi Tur Badenas(
[email protected] ) with the environemnt password (env var ADMIN_PWD) created succesfully
!
416
417
```
417
418
418
- This command use (if exists) environment variables (.env file) ADMIN_USER, ADMIN_EMAIL and ADMIN_PWD. If this env variables does not exists then
419
+ This command use (if exists) environment variables (.env file) ADMIN_USER, ADMIN_EMAIL and ADMIN_PWD. If this env variables does not exists then
419
420
user git config (
~ /.gitconfig) to obtain data and if this info does not exists use Admin (
[email protected] ) and password 123456 as default.
420
421
421
422
### make: adminUserSeeder
@@ -546,17 +547,17 @@ More info at https://github.com/acacha/adminlte-laravel/issues/58
546
547
547
548
## How to use username at login instead of email
548
549
549
- Execute command:
550
+ Execute command:
550
551
551
552
```
552
553
php artisan adminlte:username
553
554
```
554
555
555
556
And then you can use username instead of email for login.
556
557
557
- NOTE: when we are using login by username if login by usernames fails then
558
+ NOTE: when we are using login by username if login by usernames fails then
558
559
system try to use the introduced username as an email for login. So users
559
- can also login using email.
560
+ can also login using email.
560
561
561
562
To come back to email login remove ** field** option from ** config/auth.php** file:
562
563
@@ -570,7 +571,7 @@ To come back to email login remove **field** option from **config/auth.php** fil
570
571
` ` `
571
572
572
573
NOTE: Migration required to add username field to users table requires:
573
-
574
+
574
575
` ` ` bash
575
576
composer require doctrine/dbal
576
577
` ` `
@@ -587,7 +588,7 @@ Optionally you can define a default domain name for username login. Add domain o
587
588
],
588
589
` ` `
589
590
590
- to file ** config/auth.php** . Then if an user tries to login with no domain the default domain will be appended whe logging.
591
+ to file ** config/auth.php** . Then if an user tries to login with no domain the default domain will be appended whe logging.
591
592
592
593
So with previous example you can type at login:
593
594
604
605
# Vue
605
606
606
607
Laravel adminlte package by default publish Laravel translations into Javascript/Vue.js adding to HTML header the following script:
607
-
608
+
608
609
` ` ` javascript
609
610
< script>
610
611
//See https://laracasts.com/discuss/channels/vue/use-trans-in-vuejs
0 commit comments