如何在应用程序中使用laravel活动日志(laravel 5.3)

I have to save activity in log.

I have radio buttons, if enable is checked, then logs should be stored in activity_logs.

How can I achieve this and Where should I do this, in base controller or new controller.

Read up about the laravel logging functionality https://laravel.com/docs/5.3/errors#logging

You can write directly to the laravel log like this with the built in facade:

Illuminate\Support\Facades\Log::info('activity_log:'.$itemToLog);

You can put this in the controller you want to add the logging information too.