mdbootstrap/adminlte-laravel là một trong những repo phía máy chủ mà TopGit theo dõi, hiện có 1.8k sao, viết chủ yếu bằng PHP. A Laravel 5 package that switchs default Laravel scaffolding/boilerplate to AdminLTE template and Pratt Landing Page with Bootstrap 3.0
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
And disable AdminLTETemplateServiceProvider in config/app.php file ( take into account that Adminte-laravel Facades and
custom commands will not be available).
See issue https://github.com/acacha/adminlte-laravel/issues/69 for more info
First steps, database creation, migrations and login
Once package installed you have to follow the usual steps of any laravel project to Login to the admin interface:
Create a database. I recommend the use of laravel Homestead ()
AdminLTE is a Free Premium Admin control Panel Theme That Is Based On Bootstrap 3.x created by Abdullah Almsaeed. See:
https://github.com/almasaeed2010/AdminLTE
Avatar/Gravatar
Adminlte-laravel supports global recognized avatar (http://gravatar.com) using package creativeorange/gravatar (https://github.com/creativeorange/gravatar).
Artisan Commands
make:view
This commands adds a view to resources/views folder using default adminlte layout:
php artisan make:view about
make:menu
This commands adds a menu entry to file config/menu.php:
php artisan make:menu link menuname
Example:
php artisan make:menu /contact
make:route
This commands adds a route to routes file using:
php artisan make:route linkname
For example you can add a route routes/web.php file with URI /about using:
php artisan make:route about
This commands add this entry to routes/web.php
You can create 3 types of routes with option type:
regular: routes using a clousure with a simple return view command. This is the default one
controller: routes using a controller.
resource: routes using a resource controller.
Examples:
php artisan make:route about --type=controller
this adds the following:
Route::get('about', 'AboutController@index');
to file routes/web.php. You can choose the controller name and method with:
php artisan make:route about MyController@method --type=controller
If you want to create a resource controller:
php artisan make:route about --type=resource
this adds the following:
Route::resource('about', 'About@index');
to file routes/web.php.
You can also create routes with other HTTP methods using option method:
php artisan make:route save --method=post
You can also add routes to api using option api:
php artisan make:route save --api
Then the routes will be added to routes/api.php.
Finally use option -a to add actions after route creation:
php artisan make:route about -a
Last command also create a view with name about.blade.php. Using:
php artisan make:route about -a --type=controller
Will create a Controller file with name AboutController and method index.
You can consult all options with:
php artisan make:route --help
adminlte:publish | adminlte-laravel:publish
This command is already executed during installation you can (re)execute manually with:
php artisan adminlte:publish
Publish all necessary files from package to Laravel project.
adminlte:sidebar | adminlte-laravel:sidebar
Only publish package sidebar to Laravel project allowing to customize sidebar:
php artisan adminlte:sidebar
Note: sidebar is already published when you use adminlte-laravel install command.
adminlte:menu | adminlte-laravel:menu
Replaces sidebar view with a sidebar using spatie/laravel-menu:
php artisan adminlte:menu
This command also installs spatie/laravel-menu package and creates a default menu located config/menu.php.
IMPORTANT: Spatie Laravel Menu required PHP7.0 or superior to work
adminlte-laravel:admin | adminlte:admin
Executes make:adminUserSeeder artisan command (see next section) an executes seed. This command adds a default admin user to database.
php artisan adminlte:admin
File /home/sergi/Code/AdminLTE/acacha/adminlte-laravel_test/database/seeds/AdminUserSeeder.php created
User Sergi Tur Badenas([email protected]) with the environemnt password (env var ADMIN_PWD) created succesfully!
This command use (if exists) environment variables (.env file) ADMIN_USER, ADMIN_EMAIL and ADMIN_PWD. If this env variables does not exists then
user git config (~/.gitconfig) to obtain data and if this info does not exists use Admin ([email protected]) and password 123456 as default.
make:adminUserSeeder
Create a new seed to add admin user to database. Use:
php artisan make:adminUserSeeder
File /home/sergi/Code/AdminLTE/acacha/adminlte-laravel_test/database/seeds/AdminUserSeeder.php created
Social Login/Register with acacha/laravel-social
It's a cinch to add (optional) Social Login/Register support to Laravel Adminlte using acacha/laravel-social package. Execute in your project root folder:
adminlte-laravel social
Follow the wizard to configure your social providers Oauth data and enjoy!
More info at https://github.com/acacha/laravel-social.
How to remove social Login?
Remove line
@include('auth.partials.social_login')
in files resources/views/auth/login.blade.php and register.blade.php
Testing laravel project once this package is installed
Once this package is installed in a Laravel project some tests are installed to test package features. There are two kind of tests Feature/Unit tests and Browser tests. To execute Feature/Unit tests execute:
./vendor/bin/phpunit
In a new created laravel project with acacha-admintle.laravel installed to test that package is installed correctly. You can also execute Browser tests with Laravel Dusk (please install first manually Dusk package following https://laravel.com/docs/master/dusk):
The following languages are supported by default on this package: English, Catalan, Spanish, Dutch and Brazilian Portuguese. Please feel free to submit a new pull request with another languages if you wish.
Troubleshooting
GNU sed on MAC OS
NOTA: not needed in Laravel 5.5+
Acacha llum need GNU sed to work so replace BSD sed with GNU sed using:
brew install gnu-sed --with-default-names
Check you version of sed with:
man sed
sed GNU version path is:
$ which sed
/usr/local/bin/sed
Instead of default path of BSD sed (installed by default on MAC OS):
/usr/bin/sed
More info at https://github.com/acacha/adminlte-laravel/issues/58
How to use username at login instead of email
Execute command:
php artisan adminlte:username
And then you can use username instead of email for login.
NOTE: when we are using login by username if login by usernames fails then
system try to use the introduced username as an email for login. So users
can also login using email.
To come back to email login remove field option from config/auth.php file:
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/mdbootstrap/adminlte-laravel là nguồn chính thức.
mdbootstrap/adminlte-laravel có bao nhiêu sao?
mdbootstrap/adminlte-laravel có 1.8k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/mdbootstrap/adminlte-laravel. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
mdbootstrap/adminlte-laravel có phải mã nguồn mở không?
Có — mdbootstrap/adminlte-laravel phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/mdbootstrap/adminlte-laravel.
mdbootstrap/adminlte-laravel còn đang phát triển không?
Commit gần nhất trên mdbootstrap/adminlte-laravel là 1.0 năm trước (theo timestamp GitHub). Repo có 494 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
mdbootstrap/adminlte-laravel là gì?
mdbootstrap/adminlte-laravel (mdbootstrap/adminlte-laravel) là dự án PHP trên GitHub. Theo mô tả gốc: A Laravel 5 package that switchs default Laravel scaffolding/boilerplate to AdminLTE template and Pratt Landing Page with Bootstrap 3.0
mdbootstrap/adminlte-laravel so với các dự án Backend khác thế nào?
mdbootstrap/adminlte-laravel được TopGit xếp vào nhóm Backend, với 1.8k sao GitHub và viết bằng PHP. Xem trang chủ đề Backend trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về adminlte-laravel?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về adminlte-laravel.