Closed kahfieidn closed 8 months ago
You should be able to grab the request params in your controllers with:
To get a param like: users?active=1
$request->get('active');
As you can generate chart boilerplate code using artisan, you can inject the request to any chart object or use Dependency injection to add the request to the chart directly and use the request object as in the previous example.
then, how to call in App\Chart\UserChart ? i mean not in controller because i make chart using dir App\Chart\UserChart
then i call in controller
class ChartController extends Controller
{
public function index(ChartSample $chart)
{
return view('homepage.chart', ['chart' => $chart->build()]); }
//
}
how to passing $request->get('active'); to App\Chart\UserChart ???
Hello, i want create dynamic chart getting params from url, how to make this?