From controller:
$response = (new ApiController)->checkNumbers(); if(!empty($response['status']) && ($response['status'] == 'SUCCESS')) { $numbers = json_encode($response['numbers']); } return [ 'html' => view('show.numbers', compact( 'numbers' ))->render() ];
How to display "numbers" in the blade file to reflect the UI in the table? Any help would be greatly appreciated.
Thank you so much
The following example shows how to pass data from the controller and populate it to the blade.
For example, I have a table: 'user', which contains id, first name and last name columns:
SampleController.php
MyView.blade.php