Laravel / Mongodb Expert Needed

Job ID: 34971180

Budget: ₹600 – ₹601 INR

HI

I have porject with Laravel. I am using 2 database. 1) Mysql 2) Mongodb.

Now, I have one model called Import.php and in this model I have declared $collection name.

and I have a controller called ImportController.php where I am using this->

get_products = Import::paginate(10);

to get the data.

Now, I have multiple collection name in my mongodb database. I need to use the collection name in controller instead of Model. Can you do that?

Check this package which I am following : https://github.com/jenssegers/laravel-mongodb#basic-usage-2
They are using DB::collection() but it's not working for me in the controller.

Can you solve it now? If so, write I can do it now.

Thanks
Related categories: PHP Software Architecture MySQL Laravel AngularJS