10 Excel Export Category and Post Table | Laravel Splade Tutorial

preview_player
Показать описание
In this video let's export as excel file the category and post table.
Learn how to bind the model to the form.
Let's learn Laravel Splade together.
Laravel Splade tutorial.
Laravel Splade.

Support me:

Follow me:

Playlists:
Рекомендации по теме
Комментарии
Автор

Excel Export Category and Post Table | Laravel Splade Tutorial

tonyxhepaofficial
Автор

Can you show us how to upload images and display them???

moosawisham
Автор

Thank you very much for the invaluable educational videos. Can you please make a video on how to make an invoice with products, order, order details and users to use like a Point of Sales style application? Thank you once again, love your channel. 💗

davidson
Автор

I installed composer require maatwebsite/excel, php artisan make:table Categories, added a column ->export() in Tables/Categories.php then show a message: Undefined constant Maatwebsite\Excel\Excel::XLSX

LeonelLopezBorbon
Автор

I have this error:

Undefined constant Maatwebsite\Excel\Excel::XLSX

I just made a SpladeTable instance Categories.php, with inside:

use Maatwebsite\Excel\Excel;

public function configure(SpladeTable $table)
{
$table
->column('id', canBeHidden:false)
->column('name', sortable:true, canBeHidden:true)
->column('slug', canBeHidden:false)
->column('action', canBeHidden: false)
->paginate(5)
->defaultSort('name')
->withGlobalSearch('Search through the data...', ['name'])
->export(Excel::XLSX) ;
}

then i visited splade.test/categories


Laravel Version: 10.11.0
PHP Version: 8.2.6
Splade JS Version (npm): ^1.4.8
Splade PHP Version (composer): 2.5.1
Dev environment (OS, Sail/Valet/etc): Apache/2.4.54 (Ubuntu)

informaticacavallini