PHPackages                             dev-pirate/lara-report-craft - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dev-pirate/lara-report-craft

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dev-pirate/lara-report-craft
============================

Laravel package to create and manage reports easily

v1.0.4(2y ago)118MITPHPPHP &gt;=8.1

Since Jan 13Pushed 2y agoCompare

[ Source](https://github.com/dev-pirate/LaraReportCraft)[ Packagist](https://packagist.org/packages/dev-pirate/lara-report-craft)[ RSS](/packages/dev-pirate-lara-report-craft/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

LaraReportCraft
===============

[](#larareportcraft)

LaraReportCraft is a Laravel library for managing and creating the reports easily with nice single page table view and printing ability, also the package give you the ability to customize the header, the footer, the title, the column and data rows of the report and .

Install via composer
--------------------

[](#install-via-composer)

Run the following command to pull in the latest version:

```
composer require dev-pirate/lara-report-craft
```

Publish the config
------------------

[](#publish-the-config)

Run the following command to publish the package config file:

```
php artisan vendor:publish --provider="DevPirate\LaraReportCraft\Providers\LaraReportCraftProvider"
```

You should now have a config/lara-report-craft.php file that allows you to configure the basics of this package.

Add Routes
----------

[](#add-routes)

Add this code inside your route file:

```
Route::middleware([
    'api',
    \Fruitcake\Cors\HandleCors::class,
])->group(function() {
    LaraReportCraft::routes();
});

// \Fruitcake\Cors\HandleCors middleware are required here to manage cors
```

Create Custom Report Class
--------------------------

[](#create-custom-report-class)

Before continuing, make sure you have installed the package as per the installation instructions for Laravel.

### Create your Class

[](#create-your-class)

Firstly you need to extend the DevPirate\\LaraReportCraft\\Facades\\GeneralReport class on your report class, which require a custom data and functions logic

The example below should give you an idea of how this could look. Obviously you should make any changes, as necessary, to suit your own needs.

```
