Download the PHP package josegus/laravel-dash without Composer

On this page you can find all versions of the php package josegus/laravel-dash. 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-dash

Dash: Laravel admin panel

Installation

Install the package in any laravel app executing:

Once installed, export js and css files executing:

Configuration

Config file is documented itself, export it executing:

Customizing views

Export all view files:

Export only layout views:

Export only auth views:

Build from source

You can export the resources (js and sass files) to make your own build executing:

bash php artisan vendor:publish --tag=laravel-dash:resources

The assets will now be located in the resources/dash directory.

DataTables

The best way to use DataTables in any Laravel app is to use laravel-datatables, from Arjay Angeles (yajra). The laravel-datatables package comes with many features to include/use datatables y many ways.

I prefer to use datatables() helper with ajax server side. Dash comes with an abstract class to help you build your ajax response. Here is an example for an User model :

1. Create a route to data source

Since we will return a json response, api.php is a good place to put your datatable routes. You can create the path and route name as you wish, for example:

2. Create a class to build your query

Create a class that extends Dash\DataTables\Datatable abstract class. Your class must implements query() function from Datatable.

3. Create a controller method

Use the datatable class created before inside the controller:

The generate function inside Datatable class will take care of build the query and return a json response, all with server side processing.

You may be wondering: why make a class just to return a simple Users::query()?

Well, this is the most simple example, but as you can imagine, query data source can become more complex, for example:

To separate controllers and datatables data source, I prefer to have all datatables classes in App\DataTables folder.

4. Create view

Create an html table in any blade file:

Push the datatable script to scripts yield section:

Javascript helpers

Take a look at dataTable and url helpers inside this repository at resources/js/support/helpers.js.

TODO


All versions of laravel-dash with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
illuminate/support Version ^6.0|^7.0
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 josegus/laravel-dash contains the following files

Loading the files please wait ....