Image for post
Image for post

Laravel Nova Excel 1.1 — Ready for launch

Patrick Brouwers
Oct 30, 2018 · 2 min read

Two months ago we released a first version of Laravel Nova Excel that exports Nova resources to Excel. At Maatwebsite we still love Laravel Nova and couldn’t wait to extend our package even more!

Export what you see

Image for post
Image for post
User resource index screen
Image for post
Image for post
Exported users

Exporting relations

BelongsTo::make('User'),

Alternatively you can also eager-load the relation and access its data.

public static $with = ['user'];public function fields(Request $request)
{
return [
Text::make('User Name', 'user.name'),
];
}

Computed fields

Text::make('Random number', function () {
return str_random();
}),

Display callbacks

Text::make('Name')
->displayUsing(function ($value) {
return strtoupper($value);
})

Improved lenses

Improved heading row

(new DownloadExcel())->withHeadings(),

You can read more about Laravel Nova Excel in our dedicated documentation: https://laravel-excel.maatwebsite.nl/nova/1.1/getting-started/

Do you need help with integrating Laravel (Nova) Excel or do you need help building a Laravel application? At Maatwebsite, we are there to help you on a commercial basis. Contact us via info@maatwebsite.nl or via phone +31 (0)10 744 9312 to discuss the possibilities.

Maatwebsite

Professional Software Development

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store