How to set locate on all grouped routes in Laravel

I am using Laravel and I have grouped routes that all of them are for dashboard so I want to change language with url something like this : http://localhost:8000/ar/dashboard/shop/dashboard-shop http://localhost:8000/fa/dashboard/shop/dashboard-shop http://localhost:8000/en/dashboard/shop/dashboard-shop Route::namespace(‘Dashboard’)->prefix(‘{locale}/dashboard’)- >middleware(‘auth’)->group(function ($locale) { . . . . . } but it does not get $locate as a string “en” or “fa” it gives…

Details

mpl_finance candlestick colordown argument not working

I’m fallowing this tutorial for charting stock data via mpl_finance. I’m having trouble displaying the ‘colordown’ argument in the command candlestick_ohlc(ax1, candleAr, width=1, colorup=’g’, colordown=’r’). when I run my code (below) it successfully runs, but it outputs this chart where all the ups&downs for the candlesticks all display as green instead of ups as green…

Details

What is best approach to join data of Cassandra table in spark streaming application?

We are almost finalized to use spark-sql 2.4.x version , datastax-spark-cassandra-connector for Cassandra-3.x version. But have one fundamental question regarding the efficiency in the below scenario. For the streaming data records(i.e. streamingDataSet ) , I need to look up for existing records( i.e. cassandraDataset) from Cassandra(C*) table. i.e. Dataset<Row> streamingDataSet = //kafka read dataset Dataset<Row>…

Details

How to provide Activity Context via Dagger 2 in an Android project?

This is the code I have in my Activity. override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_work_order) DaggerWorkOrderComponent.factory() .create(activity) .inject(activity) } This is my module. @Module object WorkOrderModule { private lateinit var context: Context fun setWorkOrderActivityContext(ctx: Context) { context = ctx } @Provides @JvmStatic fun provideContext(): Context = context @Provides @JvmStatic fun provideLogger(): Logger = getLogger()…

Details

New drupal installation showing html source in browser instead of rendered html

enter code hereI just installed drupal 8.8.1 using composer. when starting installation it displays html source in browser window instead of rendering the html of the installation script. The code below is what is displayed: <!DOCTYPE html> <html lang=”en” dir=”ltr”> <head> <meta charset=”utf-8″ /> <meta name=”Generator” content=”Drupal 8 (https://www.drupal.org)” /> <meta name=”MobileOptimized” content=”width” /> <meta…

Details