background preloader

QuickAdminPanel

Facebook Twitter

Advanced Datatables with Laravel: Five Code Examples – Quick Admin Panel. In our QuickAdminPanel we use a package called Datatables.net quite a lot – it’s really good to show tables of data. But on top of our generator you can extend it, we will show you how. We’ve just launched a new demo-project on GitHub to show you five examples of the advanced usage of Datatables with AJAX loading and package Yajra/Laravel-Datatables. Example 1. Row details Example 2. Example 3. Example 4. Example 5. You can see all the source code in this repository. Braintree Payments in Laravel: The Ultimate Guide – Quick Admin Panel. Braintree is one of the most popular ways to accept payments online, in this article we take a deep look how it works in Laravel framework.

In this tutorial we will create a few Braintree demos, so please create your testing account at Braintree, and let’s dive right in. Preparation and Braintree Install First, let’s create a new Laravel application laravel new braintree-demo Next – usual Laravel installation steps: composer install cp .env.example .env php artisan key:generate php artisan migrate And then we install a special Braintree package for PHP: composer require braintree/braintree_php Now we need to set up our Braintree API information in .env file BRAINTREE_ENV=sandbox BRAINTREE_MERCHANT_ID= BRAINTREE_PUBLIC_KEY= BRAINTREE_PRIVATE_KEY= Go to Braintree sandbox page and register an account.

Now, fill in the data BRAINTREE_ENV=sandbox BRAINTREE_MERCHANT_ID=pxsff7htd4xwwcgs BRAINTREE_PUBLIC_KEY=3m7dsyydgdz9nxcd BRAINTREE_PRIVATE_KEY=cc2632a6b244d16eabbbcb4d08105bab Payment Routes and Forms To. New module “Dashboard Widgets”: see latest CRUD entries after login – Quick Admin Panel. This new module in our online generator allows you to add newest entries to your dashboard.

By default, if you create your admin panel, download it and log in, you will see empty dashboard with text “You are logged in”, like this: The idea behind this is that you get almost empty HomeController.php and empty home.blade.php file and you can then add anything you want, manually in Laravel code. class HomeController extends Controller { public function index() { return view('home'); } } @extends('layouts.app') @section('content') <div class="row"><div class="col-md-10"><div class="panel panel-default"><div class="panel-heading">@lang('quickadmin.qa_dashboard')</div><div class="panel-body"> @lang('quickadmin.qa_dashboard_text') </div></div></div></div> @endsection Cause we cannot “guess” what you want to see on your dashboard. But recently our customers asked for ability to see newest entries somewhere in one view, like dashboard.

Let’s say that you have 3 widgets created, with 5 entries shown. DataTables | Table plug-in for jQuery. Reports and Charts in Laravel: Two Useful Packages – Quick Admin Panel. For bigger web-project with a lot of data we usually have to build a reporting system – with export to PDF/Excel, charts and graphs.

There are many ways to do it, let’s look at the most popular ones. JavaScript libraries We won’t start with Laravel, first things first: generally, charts on the web are created with JavaScript. There are quite a few popular libraries for this: And others. Most of them work in a way that there’s a <canvas> or <div> element which then gets filled with JavaScript “magic” – lines, colors, labels etc. Here’s a simple example of Chart.js: As you can see, it’s pretty simple, you just need to know the parameters – variables, labels, datasets, axes options etc. The main point – it is possible to draw charts just in JavaScript/jQuery, without Laravel packages, just getting data from database via Eloquent and passing it to Blade within JavaScript, like this: ... data: [{{ implode(',', $data }}], ... But what if we want to do it more Laravel-way?

ConsoleTVs/Charts. Advanced Datatables with Laravel: Five Code Examples – Quick Admin Panel. Two Tips to Avoid Big Refactorings in Laravel. Generating DB Schema in 10 seconds with MySQL Workbench. LaravelDaily/Laravel-File-Storage: Laravel 5.5 Demo-project to store files, mini-Dropbox with multi-tenancy and Stripe payments. Demo: Expense Manager - Laravel multi-tenancy and multi-currencies. Laravel Factory (α) | CRUD Generation 2.0.

Live-coding: Calendar project with Laravel + QuickAdminPanel

Live-coding: Invitations System with Laravel 5.5 + QuickAdminPane. Datatables in Laravel: Default and AJAX. Import CSV in Laravel 5.5 + Matching Fields. Simple CRUD with Laravel 5.5 + Vue.js. Laravel 5.5 Upload Videos to Amazon S3. Home.