Answer the question
In order to leave comments, you need to log in
How to export data from database to excel?
The page displays data in table tags received from the database. How to use PhpSpreadsheet to export received data to Excel and then download. Currently using Laravel.
public function index()
{
$users=DB::table('bf_busers')->limit(30)->get();
return view('posts.index')->with('users',$users);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question