Download the PHP package acharsoft/laravel-adminlte-rtl without Composer

On this page you can find all versions of the php package acharsoft/laravel-adminlte-rtl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-adminlte-rtl

Easy AdminLTE integration with Laravel 5

Latest Version on Packagist Build Status Quality Score StyleCI Total Downloads

This package provides an easy way to quickly set up AdminLTE with Laravel 5. It has no requirements and dependencies besides Laravel, so you can start building your admin panel immediately. The package just provides a Blade template that you can extend and advanced menu configuration possibilities. A replacement for the make:auth Artisan command that uses AdminLTE styled views instead of the default Laravel ones is also included.

  1. Installation
  2. Updating
  3. Usage
  4. The make:adminlte artisan command
    1. Using the authentication views without the make:adminlte command
  5. Configuration
    1. Menu
      • Custom menu filters
      • Menu configuration at runtime
      • Active menu items
    2. Plugins
  6. Translations
  7. Customize views
  8. Issues, Questions and Pull Requests

1. Installation

  1. Require the package using composer:

  2. Add the service provider to the providers in config/app.php:

    Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider

  3. Publish the public assets:

2. Updating

  1. To update this package, first update the composer package:

  2. Then, publish the public assets with the --force flag to overwrite existing files

3. Usage

To use the template, create a blade file and extend the layout with @extends('adminlte::page'). This template yields the following sections:

All sections are in fact optional. Your blade template could look like the following.

Note that in Laravel 5.2 or higher you can also use @stack directive for css and javascript:

You now just return this view from your controller, as usual. Check out AdminLTE to find out how to build beautiful content for your admin panel.

4. The make:adminlte artisan command

Note: only for Laravel 5.2 and higher

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.

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

4.1 Using the authentication views without the make:adminlte command

If you want to use the included authentication related views manually, you can create the following files and only add one line to each file:

By default, the login form contains a link to the registration form. If you don't want a registration form, set the register_url setting to null and the link will not be displayed.

5. Configuration

First, publish the configuration file:

php artisan vendor:publish --provider="Yadahan\AuthenticationLog\AuthenticationLogServiceProvider"

Now, edit config/adminlte.php to configure the title, skin, menu, URLs etc. All configuration options are explained in the comments. However, I want to shed some light on the menu configuration.

5.0 Migrations

First, publish the migration file:

Now, you run this command.

Finally, add the AuthenticationLogable and Notifiable traits to your authenticatable model (by default, App\User model). These traits provides various methods to allow you to get common authentication log data, such as last login time, last login IP address, and set the channels to notify the user when login from a new device:

5.1 Menu

You can configure your menu as follows:

With a single string, you specify a menu header item to separate the items. With an array, you specify a menu item. text and url or route are required attributes. The icon is optional, you get an open circle if you leave it out. The available icons that you can use are those from Font Awesome. Just specify the name of the icon and it will appear in front of your menu item.

Use the can option if you want conditionally show the menu item. This integrates with Laravel's Gate functionality. If you need to conditionally show headers as well, you need to wrap it in an array like other menu items, using the header option:

Use the permission option if you want conditionally show the menu item. If you need to conditionally show headers as well, you need to wrap it in an array like other menu items, using the header option:

Custom Menu Filters

If you need custom filters, you can easily add your own menu filters to this package. This can be useful when you are using a third-party package for authorization (instead of Laravel's Gate functionality).

For example with Laratrust:

And then add to config/adminlte.php:

Menu configuration at runtime

It is also possible to configure the menu at runtime, e.g. in the boot of any service provider. Use this if your menu is not static, for example when it depends on your database or the locale. It is also possible to combine both approaches. The menus will simply be concatenated and the order of service providers determines the order in the menu.

To configure the menu at runtime, register a handler or callback for the MenuBuilding event, for example in the boot() method of a service provider:

The configuration options are the same as in the static configuration files.

A more practical example that actually uses translations and the database:

This event-based approach is used to make sure that your code that builds the menu runs only when the admin panel is actually displayed and not on every request.

Active menu items

By default, a menu item is considered active if any of the following holds:

To override this behavior, you can specify an active parameter with an array of active URLs, asterisks and regular expressions are supported. Example:

5.2 Plugins

Custum Blade @links and @scripts

Use the plugins_js and plugins_css option if you want to add your plugins.

It is also possible to configure the Blade. in the boot of any service provider.

To configure the @links and @scripts for example in the boot() method of a service provider:

after this run this command

in views just use to add this tag:

or in your scripts just

if you want to use translate just use

6. Translations

At the moment, English, German, French, Dutch, Portuguese and Spanish translations are available out of the box. Just specifiy the language in config/app.php. If you need to modify the texts or add other languages, you can publish the language files:

Now, you can edit translations or add languages in resources/lang/vendor/adminlte.

if you want to use this in your menu items just uncomment this line

in your menu filters

7. Customize views

If you need full control over the provided views, you can publish them:

Now, you can edit the views in resources/views/vendor/adminlte.

7.1 Google Login

Install socialite using composer. Socialite is an official Laravel package documented here.

Add credentials to config/services.php. Socialite supports Facebook, Twitter, LinkedIn, Google, GitHub and Bitbucket. Other providers require packages from the community, which are all listed here.

These providers follow the OAuth 2.0 spec and therefore require a client_id, client_secret and redirect url. We’ll obtain these in the next step! First, add the values to the config file because socialite will be looking for them when we ask it to.

Since we added a new package, make sure to add to the service providers array in config/app.php:

Service Providers are the central place for application bootstrapping. The above line let’s Laravel to know to make the Socialite available for use.

Add an alias to Socialite so it is easier to reference later, also in config/app.php file:

A modal will pop up with your apps client id and client secret. Add these values to your .env file.

Enable the Google+ API: https://console.cloud.google.com/apis/api/plus.googleapis.com/overview (This tells Google what services our application is going to use ie Google+ account login)

Update here January 2019: The Google+ API is being deprecated this March. The Laravel Socialite project latest release has been updated to not use the Google+ API so the above step is not necessary.

Head into routes/web.php and add endpoints for redirect and callback:

The first method will show the Google authentication page in the same window where the user is viewing your webpage (no annoying popups):

The next method will handle after a successful Google authentication:

8. RTL Support

For rtl supported you can change your locale to 'fa' or 'ar' in congig/app.php in other languages the template is ltr .

9. Issues, Questions and Pull Requests

You can report issues and ask questions in the issues section. Please start your issue with ISSUE: and your question with QUESTION:

If you have a question, check the closed issues first. Over time, I've been able to answer quite a few.

To submit a Pull Request, please fork this repository, create a new branch and commit your new/updated code in there. Then open a Pull Request from your new branch. Refer to this guide for more info.


All versions of laravel-adminlte-rtl with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version ~5.1.12|~5.2.0|~5.3.0|~5.4.0|~5.5.0|~5.6.0|~5.7.0
php Version >=7.0
yadahan/laravel-authentication-log Version ~1.1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package acharsoft/laravel-adminlte-rtl contains the following files

Loading the files please wait ....